Hi Aewin ,
Note that RadGrid1.ClientSettings.ClientEvents.OnRowDblClick
is a property that holds the name of the event handler for the OnRowDblClick
event and is not used to toggle row double click. So assigning value "true
" or "false
" based on some condition is inappropriate unless you have event handlers called "true
" and "false
". To achieve the desired functionality you could hook the event and check the conditions in it. If they are not met cancel the event by executing the following command: eventArgs.set_cancel(true)
otherwise you could do your custom logic.
I am also attaching a sample project to illustrate the recommended approach.
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward!
We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>