Is there any method to insert the different class into alternate rows in struts2 datagrid. using the altClass property i can insert class into either even or odd rows. But i want to insert different class for odd rows and even rows. Is it possible in struts2 drid view
Asked
Active
Viewed 391 times
1
-
But how can i accept answers? By doing upVote? – user359187 Feb 01 '12 at 09:13
-
1select answer which has helped you by clicking answer as accepted.Please see this question http://stackoverflow.com/questions/9086686/how-data-travels-in-struts2 it has been accepted by the OP (see green mark indicating accepted) – Umesh Awasthi Feb 01 '12 at 09:17
-
1Find the underlying JS datagrid and use it directly... I can't express how much these UI tag questions drive me crazy. – Quaternion Feb 01 '12 at 21:20
-
Yah i have download the css and use it directly. Now it is working – user359187 Feb 02 '12 at 05:30
-
+1 just because you did the right thing. – Quaternion Feb 02 '12 at 18:49
-
Sorry I like to see closed questions. If you could self answer this question and state simply what you did to solve it I would upvote it. – Quaternion Feb 02 '12 at 18:52
1 Answers
0
I have just download the ui.jquery.css and include it manually in my jsp page using link tag. And i have use altRows="true"
and altClass="even"
and access this even class different style and other <tr>
without even class other style. That's it.

user359187
- 2,269
- 6
- 29
- 44