RadGrid Double Click with Single Click

6 posts, 1 answers
  1. Riz
    Riz avatar
    8 posts
    Member since:
    Sep 2011

    Posted 04 Oct 2011 Link to this post

    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>
  2. Answer
    Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 04 Oct 2011 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Riz
    Riz avatar
    8 posts
    Member since:
    Sep 2011

    Posted 04 Oct 2011 Link to this post

    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.
  5. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 04 Oct 2011 Link to this post

    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
  6. Riz
    Riz avatar
    8 posts
    Member since:
    Sep 2011

    Posted 05 Oct 2011 Link to this post

    Thanks Pavlina / Stuart. We'll see what are alternates to Thanks Stuart. We'll see what are alternates to achieve our goal.
  7. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 05 Oct 2011 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017