I want a grid with only two columns, one is for name and the other for percentage. The very last row will have ‘Total’ as the name and the total percent as ‘percentage’. This row only will be styled differently than the other rows. Please guide me how can i accomplish this.
Thanks..
I want a grid with only two columns, one is for name and the
Share
There is a grid feature to accomplish exactly that. It is covered here in the docs with some examples of how to use it.
You can also customize the style by providing your own implementation of the
x-grid-row-summaryclass in your css.EDIT
Here’s some examples of setting the summary row style, as you can see there are a few ways to go about it. Realize that the summary row can’t be referenced until the
viewreadyevent occurs, it is not ready at theafterrenderevent, so I put all this logic in aviewreadylistener: