I added a TemplatedField in an ultrawebgrid,and it has a linkbutton in this TemplatedField.How do get the row when I clicked the linkbutton in client-side?
Hello,
I guess you can use databiding expression ro send the row index of the row to the client using something similar to:
<asp:LinkButton runat="server" ID="MyLinkButton" Text="Press Me" OnClientClick="doSomething('<%# Container.Cell.Row.Index %>')" />
Then, on the client-side, you will have the index and can use the grid client-side object model (CSOM) documented here:
http://help.infragistics.com/NetAdvantage/NET/2008.2/CLR3.5/
to get to the actual row instance based on the index.
Please, let me know if this helps
the' <%# Container.Cell.Row.Index %>' didn't work.It show "cannot resolve symbol 'Cell'".