PDA

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



madhu_g
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?

Arno.Nyhm
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:
http://extjs.com/forum/showthread.php?t=63555

Arno.Nyhm
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 :-)
http://extjs.com/learn/Extension:StripeCols

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

madhu_g
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.

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