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
865
Finding a control in an UltraWebGrid's row using Javascript
posted

Is there a way to search for a control in an UltraWebGrid's row using Javascript?

  • 28464
    posted

    Hello,

    Yes, sure, but it really depends on which control you want to use. Is this a control inside a templated column of the grid? Or is it a  custom control inside a particular column type (e.g. dropdown, button)? Or is it an edit control?

    So you can get the intance of the row (or better yet) cell of the grid you need using the grid client-side API (CSOM) documented here(in the CSOM part of the help, bottom down)

    http://help.infragistics.com/NetAdvantage/NET/2008.2/CLR2.0/

    Once you get the row or cell, you can use its Element property to get the actual HTML element (<tr> or <td>) and then the javascript getElementsByTagName or getElementById methods on that element to retrieive elements inside.

    You may find the following forum thread and the answer from Vince helpful here:

    http://forums.infragistics.com/forums/p/10619/41202.aspx#41202