On the OnRowDblClick client event, I'd like the grid to postback and send the SelectedIndex as an argument. I stumbled upon this article: http://www.telerik.com/help/aspnet/grid/grdpostbackfromgridwithajaxenabled.html, and I'm curious to know how the "this" keyword is referencing the grid control. In my code, "this" refers to the calling function.
Here a snippet of my code:
Here a snippet of my code:
| <rad:RadGrid ID="claimLvlGrid" runat="server" DataSourceID="claimLvlODS" |
| AutoGenerateColumns="false" SelectedItemStyle-CssClass="selectedRow" |
| HeaderStyle-HorizontalAlign="Center" Skin="Outlook"> |
| <ClientSettings Selecting-AllowRowSelect="true" Scrolling-AllowScroll="true" |
| Scrolling-ScrollHeight="75px" Scrolling-UseStaticHeaders="true" |
| ClientEvents-OnRowDblClick="test" /> |
| <rad:RadScriptBlock runat="server"> |
| <script type="text/javascript"> |
| function test() |
| { |
| __doPostBack("<%= claimLvlGrid.UniqueID %>", <index>); |
| } |
| </script> |
| </rad:RadScriptBlock> |