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

[Solved] RowClick & RowDoubleClick

3 Answers 169 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 2
Richard asked on 26 Jan 2010, 12:10 PM
Does anyone know if we are able to have both Rowclick AND RowDblClick fire together?  If I have them both configured, only Rowclick seems to fire.

Any ideas?

Thanks!

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 26 Jan 2010, 12:25 PM
Hello Richard,

It should work properly as long as EnablePostBackOnRowClick is set to false
<script type="text/javascript">
    function rowClick()
    { $get("Label1").innerHTML += "1;"; }
    function rowDblClick()
    { $get("Label1").innerHTML += "2;"; }
</script>
 
<asp:Label ID="Label1" runat="server" />
<telerik:RadGrid ID="RadGrid1" runat="server">
    <ClientSettings EnablePostBackOnRowClick="false">
        <ClientEvents OnRowClick="rowClick" OnRowDblClick="rowDblClick" />
    </ClientSettings>
</telerik:RadGrid>

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Richard
Top achievements
Rank 2
answered on 26 Jan 2010, 03:54 PM
Thanks for your reply Daniel.

I do have EnablePostBack=True because I need some events to fire server-side.  I didn't mention that in my post.  Maybe I can fire the OnRowClick client-side then force a postback???

0
Daniel
Telerik team
answered on 26 Jan 2010, 08:05 PM
Hello Richard,

If you want the OnRowDblClick event to fire, you shouldn't force postback on RowClick.
I will be able to provide more to-the-point answer if you post more information about your scenario/requirements

Regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Richard
Top achievements
Rank 2
Answers by
Daniel
Telerik team
Richard
Top achievements
Rank 2
Share this question
or