I want to clear all the cells (or set select indexes) based on clicking on a link in a cell in the row. I want to do this client side. I have an onclientclick event on an asp:link in a template column in a grid
In the RowClear javascript function, I want to get the row and then the GridDataItem based on the link. Then I want to be able to access all the cells in the row. Can you give me a pointer as to how to get to the other cells from the cell that contains the link that was clicked. I think it has to do with getting the parent, but just coding sender.parent doesn't work.
Thanks for your help!
</telerik:GridTemplateColumn> |
<telerik:GridTemplateColumn UniqueName="Clear" HeaderText=""> |
<ItemTemplate> |
<asp:LinkButton runat="server" ID="lnkClear" OnClientClick="RowClear(this);return false;" Text="Clear"></asp:LinkButton> |
</ItemTemplate> |
</telerik:GridTemplateColumn> |
In the RowClear javascript function, I want to get the row and then the GridDataItem based on the link. Then I want to be able to access all the cells in the row. Can you give me a pointer as to how to get to the other cells from the cell that contains the link that was clicked. I think it has to do with getting the parent, but just coding sender.parent doesn't work.
Thanks for your help!