1. #1
    Ext JS Premium Member
    Join Date
    Apr 2008
    Location
    Oslo
    Posts
    64
    Vote Rating
    0
    Answers
    2
    mikhailt is on a distinguished road

      0  

    Default Answered: How to stripe rows in HTML table with ExtJS?

    Answered: How to stripe rows in HTML table with ExtJS?


    How to stripe rows in HTML table ?
    This is in jQuery
    $("table.mytable tr:even").addClass("even");

    Same in ExtSJ
    Ext.get(Ext.DomQuery.select("table[class=mytable tr:even]")).addCls("even");

    seems does not work

  2. Code:
    Ext.select('table.mytable tr:even').addCls('even');

  3. #2
    Sencha User skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,082
    Vote Rating
    112
    Answers
    454
    skirtle is a splendid one to behold skirtle is a splendid one to behold skirtle is a splendid one to behold skirtle is a splendid one to behold skirtle is a splendid one to behold skirtle is a splendid one to behold skirtle is a splendid one to behold

      0  

    Default


    Code:
    Ext.select('table.mytable tr:even').addCls('even');