Results 1 to 2 of 2

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

  1. #1
    Ext JS Premium Member
    Join Date
    Apr 2008
    Location
    Oslo
    Posts
    64
    Answers
    2
    Vote Rating
    0
      0  

    Default 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 Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,790
    Answers
    583
    Vote Rating
    390
      0  

    Default

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •