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

RadGrid Double Click with Single Click

5 Answers 204 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Riz
Top achievements
Rank 1
Riz asked on 04 Oct 2011, 07:02 AM
I have a requirement to fire a client side event on Telerik RadGrid Row Double Click, and an update fetching from server on single click. But Double click event doesn't work. If I remove "EnablePostBackOnRowClick" option, then it works fine. How can I use both? Here is my code

<ClientSettings AllowGroupExpandCollapse="True" ReorderColumnsOnClient="false" AllowDragToGroup="false"
     
AllowColumnsReorder="false" EnablePostBackOnRowClick="true" >
     
<ClientEvents OnRowDblClick="RowDblClick" />                  
 
</ClientSettings>

5 Answers, 1 is accepted

Sort by
0
Accepted
Pavlina
Telerik team
answered on 04 Oct 2011, 12:57 PM
Hi Muhammad,

If you want the OnRowDblClick event to fire, you should not force postback on RowClick.

Kind regards,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Riz
Top achievements
Rank 1
answered on 04 Oct 2011, 01:15 PM
As I explained,  we want to do some updations on page on single click and navigate to another page on double click. Without As I explained,  we want to do some updations on page on single click and navigate to another page on double click. Without EnablePostBackOnRowClick, it will not be possible for us.
0
Stuart Hemming
Top achievements
Rank 2
answered on 04 Oct 2011, 04:43 PM
Muhammad,

I'm afraid it is just not possible to do what it is you want. You either have EnablePostBackOnRowClick or you have the double-click work.

They are your only choices.

-- 
Stuart
0
Riz
Top achievements
Rank 1
answered on 05 Oct 2011, 01:24 PM
Thanks Pavlina / Stuart. We'll see what are alternates to Thanks Stuart. We'll see what are alternates to achieve our goal.
0
Stuart Hemming
Top achievements
Rank 2
answered on 05 Oct 2011, 03:01 PM
Riz,

have you considered including an icon on the event which, when clicked, would allow you to execute one function or the other?

I think you should be able to click on the icon without compromising your ability to double-click on the appointment.

-- 
Stuart
Tags
General Discussions
Asked by
Riz
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Riz
Top achievements
Rank 1
Stuart Hemming
Top achievements
Rank 2
Share this question
or