This is a migrated thread and some comments may be shown as answers.

[Solved] Prevent double click when clicking on arraw for detailgrid

1 Answer 222 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gert
Top achievements
Rank 1
Gert asked on 02 Feb 2015, 08:44 AM
I have a grid, each row has a detail grid.
Every row has an arrow (first-cell), when you click on that arrow the detail-grid appears.
All very nice and well done.

I have a double click function attached to the grid which opens a custom popup window.
But it may not be opened when clicked on the arrow !
How can I achieve this ? This is my double-click function :
$("#grid").on("dblclick", " tbody > tr", function () {


     var grid = $("#grid").data("kendoGrid");
                           gridWaSelectdRowIndex = $(this).closest("tr").index();


alert ('open dialog now);
                       }
 
 
                   });


How do I prevent de open-dialog to show up when clicked on the arrow for the detail-grid ?

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 04 Feb 2015, 08:08 AM

Hello Gert,

You can change the selector to get all the td children of the grid, but not the hierarchy cell and attach the click handler to that selection. Here is an example:

http://dojo.telerik.com/@Kiril/azERe

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Gert
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or