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
1150
Add ID to Combo Editor inside igGrid
posted

Hi,

Is there a way to add ID attribute to a combo editor inside igGrid ? I'm using MVC helper to set the combo editor but there's no property that does that I don't think.

Parents
No Data
Reply
  • 24671
    Verified Answer
    posted

    Hi,

    if you would like to locate a specific combo in a templated row, i suggest ti get the row element by relying on its data-id attribute (or just the index), which the grid renders, then locating  the combo as a child of that row element, using some of its CSS classes as a selector. 

    example:

    var row = $("#grid1").igGrid("rowAt", <index>);

    var combo = $(row).find(".ui-igcombo");

    Or row by primary key:

    var row = $("#grid1").find("tr[data-id='<your ID>']");

    Hope it helps. Thanks,

    Angel

Children