PDA

View Full Version : Display



arunkumargm1987
28 Jun 2010, 1:02 AM
I have a panel which displays the results of search.I have a requirement to display the alternate results in different background color..I mean like,for 10 results in display panel,i need to display 1st,3rd,5th,7,9.. results in particular color & others in another color. How can I achieve this ?
Please provide me with the template.

Plz help..(:|:-?:(

Animal
28 Jun 2010, 2:10 AM
Play with this class on the Firebug console command line:

http://www.sencha.com/deploy/dev/docs/?class=Ext.DomQuery

See what you can come up with. Come back here if you really get stumped.

This is really a classic problem: http://www.google.co.uk/search?hl=en&q=row+striping&aq=f&aqi=g-c1g1g-c1g-m1&aql=&oq=&gs_rfai=

But it's a good exercise to go through for a beginner.

(If it's a GridPanel, there is a built-in way!)