Hi Guys,
Probably there's another solution. But converting our 1.* application to 3.* I couldn't find the attribute 'striperows' in the TransformGrid.
How do I achieve the same functionality. Or is CSS the only option ?
Regards,
Martin
Hi Guys,
Probably there's another solution. But converting our 1.* application to 3.* I couldn't find the attribute 'striperows' in the TransformGrid.
How do I achieve the same functionality. Or is CSS the only option ?
Regards,
Martin
Hello @CarWise!
Have you tried the same approach that works on an ordinary grid panel with the TransformGrid?..
Actually trying a transform grid without any settings I get the rows alternating in different colors...
For Ext.NET 2.x+ you want to set the striperows setting from the grid's view, but I rather had to disable it instead to get the flat format. :)
If you look at this example: Grid Panel > Miscellaneous > TransformGrid
You'll notice there's no stripe rows. But if you check the same on Ext.NET 4 EE, it has them.
Seems that this became an issue for other people from Sencha and they changed the default directly in ExtJS, so that it got the rows striped by default. But forcing striperows in the ViewConfig seems to work fine in 3.x as well... In other words:
Is all you would need if the example mentioned above is enough to reproduce your use case scenario. And it would no longer be required (for that goal) in Ext.NET 4.Code:<ext:TransformGrid runat="server" Table="data">
<ViewConfig runat="server" StripeRows="true" />
</ext:TransformGrid>
I hope this helps!
Hi Fabricio,
Thanks for that many info for this small problem. I didn't try it yet. Was just looking at the 3.* example code. Your viewconfig solution works fine for me !
Have a nice weekend !
Martin
Hello @CarWise!
Thanks for your feedback, glad it helped!