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
405
CSS class for all rows in grid
posted

I am using a js library (jsPlumb) with igGrid. I am trying to find out if there is a css class for every table row in the grid. I can use ui-iggrid-altrecord and get the behavior out of jsPlumb that I want. But, obviously, that only applies to alternate rows of the igGrid. When I inspect the elements it appears that the other TRs don't have a class assigned. So, I am looking for a class that applies to all rows in the table.

Thanks,
Pat 

Parents
No Data
Reply
  • 23953
    Verified Answer
    Offline posted

    Hi Pat,

    There isn't a CSS class which is applied to all grid records. You can use different CSS selector in order to get all the rows. For example: "#grid1>tbody>tr".

    If CSS class is a must you can inject your custom CSS class with jQuery like this:

    $("#grid1>tbody>tr").addClass("myClass");

     

    Hope this helps,

    Martin Pavlov

    Infragistics, Inc.

Children