Edit on dblclick
Edit on dblclick
nskwortsow
Posts: 120Questions: 0Answers: 0
Hi,
How would I enable the editing of a row on dblclick?
Thks
N
How would I enable the editing of a row on dblclick?
Thks
N
This discussion has been closed.
Replies
Allan
Now: how to disable the highlighting of rows?
comment out "sRowSelect": "multi",
Allan
In the API-documentation, I do not see any mention of having to pass in the ID of the row.
My code:
editor.buttons( [
{
"label": "Cancel",
"className":"btn btn-link",
"fn": function () {
this.close();
}
}, {
"label": "Delete",
"className":"btn btn-inverse",
"fn": function () {
this.remove( row_to_delete, 'Delete row', {
"label": "Confirm",
"fn": function () { this.submit(); }
} );
}
}
, {
"label": "Save",
"className":"btn",
"fn": function () {
this.submit();
}
}
] );
$('.table_editable tbody').on('click',function(e){
var $parent = $(e.target).parent();
editor.edit( $parent,'Edit record');
});
You don't - the ID must be on the row ( `row_to_delete` in this case) and this is what is sent to the server. Is the ID not present?
Allan
With what do I replace the string "row_to_delete"?
Allan