Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
500
How do get row in client-side
posted

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?

Parents
No Data
Reply
  • 28464
    posted

    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 

Children