I have in my grid a ImageButton in each rows. When i click on it, i need to retrieve the ID of the selected row.
My grid is fulfilled using an ObjectDataSource.
This is the column i’m talking about:
<telerik:GridTemplateColumn UniqueName="ImageColumnDetails">
<ItemTemplate>
<asp:ImageButton ID="ImageButtonDetails" runat="server" ImageUrl="~/img/cle-outil_white.gif"
ToolTip="Détails du ticket"
OnClientClick='<%# Eval("idAgir","openRadWin({0})") %>;return false;'/>
</ItemTemplate>
</telerik:GridTemplateColumn>
As you see, i need to specify the IdAgir in my aspx page to pass it by URL to a JS function.
Thank you for your help
Make sure to include idAgir in your DataSource, going with the implementation you’re attempting this should work:
–
I personally usually use this approach, and modify my columns on the server side, but I don’t really see the difference.