I'm trying to make it so that when you double click on a row, it performs the same action as selecting that row and then clicking the edit button, but it isn't working. I'm using the fnRowCallback in the dataTable as follows:
I've tried using nRow and $(nRow) as the argument to edit but neither displays the correct row, and the title / buttons that are visible when you click 'Edit' are not shown in the form when it is opened in this manner. What is the correct way to pass a row to the edit() method?
"fnRowCallback": function( nRow, aData, iDisplayIndex ) { $(this).bind("dblclick", function () { self.Editor.edit($(nRow)); }); }
I've tried using nRow and $(nRow) as the argument to edit but neither displays the correct row, and the title / buttons that are visible when you click 'Edit' are not shown in the form when it is opened in this manner. What is the correct way to pass a row to the edit() method?