View Full Version : Is there a way to provide column striping some thing similar to stripe rows in a grid

17 Aug 2009, 1:11 AM
I need to stripe the columns inside a grid similar to grid.setStripeRows( true ); How can i achieve this functionality?

19 Aug 2009, 3:07 AM
if you need this only in one grid the easy way is to make your own css for this column.

each cell in a column has the style: x-grid3-col-columnname

if you need it more generic then you can start with the ideas from this extjs example:

28 Aug 2009, 4:24 AM
maybe this extjs extension gives you an idea to make your command :-)
also you can use the css of it :-)

28 Aug 2009, 5:01 AM
an other idea is to create a gridcellrenderer
which add the css on the first call to this.

30 Aug 2009, 8:58 AM
Hi, thanks for your reply.

I have implemented this feature by overriding the doRender method inside the GridView class and rendering the row striping style for alternate columns.

31 Aug 2009, 12:56 AM
can you help others with the same problem if you post your solution here as code snippet? thx