Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82145

Making double click invoke the edit function

$
0
0
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:

                "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?

Viewing all articles
Browse latest Browse all 82145

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>