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
3790
match cells to the header stlye
posted

I want to make all my first row cells look like the headers color style.

abcdefg
1 xxxxx
2 xxxxx
3 xxxxx
4 xxxxx

So It looks sort of like the above. I would also like the widths of the cells not to be changeable only for the first column in the rows.

Parents
  • 17559
    Verified Answer
    posted

    Hi seang,

     

    You can achieve this functionality by going through the cells in the first column and then assign to the element the same class that we assign to the header: ui-widget-header:

     

    $("#grid1").igGrid("allRows").each(

    function(i){

    $($("#grid1").igGrid("cellAt",0,i)).addClass("ui-widget-header")

    }

    )

     

    Please let me know if this helps.

Reply Children
No Data