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

[Solved] Rad Grid Row DoubleClick

2 Answers 986 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Manimozhi
Top achievements
Rank 1
Manimozhi asked on 03 Aug 2013, 01:31 PM
Hi,

How to trigger double click event for RadGrid row. Is there any separate event for that?

I want to open a new page in radgrid row double click?

Kindly solve my issue as soon as possible. so that we can continue our production.

Thank you.

2 Answers, 1 is accepted

Sort by
0
Accepted
A2H
Top achievements
Rank 1
answered on 05 Aug 2013, 03:16 AM
Hi,

You can use Radgrid's  "OnRowDblClick"  client event to trigger the double click event in rows.
Please try the below implementation
ASPX:
<telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" AllowFilteringByColumn="true"
                AutoGenerateColumns="false" Width="500px">
                <MasterTableView>
                    <Columns>
                        . . . . . . . . . . .
                    </Columns>
                </MasterTableView>
                <ClientSettings>
                    <ClientEvents OnRowDblClick="OnRowDblClick" />
                </ClientSettings>
            </telerik:RadGrid>

Javascript:
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
    <script type="text/javascript" language="javascript">
        function OnRowDblClick(sender, eventArgs) {
            window.location.href = "SamplePage.aspx";
        }
    </script>
    </telerik:RadScriptBlock>


Thanks,
A2H

0
Manimozhi
Top achievements
Rank 1
answered on 05 Aug 2013, 10:35 AM
Works Fine.... :) Thank You.. :)
Tags
Grid
Asked by
Manimozhi
Top achievements
Rank 1
Answers by
A2H
Top achievements
Rank 1
Manimozhi
Top achievements
Rank 1
Share this question
or