This is a migrated thread and some comments may be shown as answers.

How to group data in RadgRid

1 Answer 57 Views
Grid
This is a migrated thread and some comments may be shown as answers.
johnson lim
Top achievements
Rank 1
johnson lim asked on 15 Aug 2012, 09:15 AM
Hi,
I need to group the data in RadGrid by ProjectNo. For data with same ProjectNo, ProjectNo will appear once in multiple row and there is no line in ProjectNo column until next different ProjectNo like below.

http://i1039.photobucket.com/albums/a477/johnsonlim026/GridSorting.jpg

I have search online and go through the demo but no solution on this.
Can someone help?

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 20 Aug 2012, 08:15 AM
Hi,

RadGrid groups items based on given group expression. The key part is that every group consists of RadGrid items. By default if a standard skin is applied all the cells have borders and thus they look as a different items. If you want to have borders only around the top, left, right and bottom borders you will need to implement custom skin for RadGrid. More information on how to create custom skins you could find in this help topic.

Another approach is to use RadListView, where you could specify exactly what layout you want to achieve. An example of RadListView grouping could be found in t this online demo application.

Greetings,
Andrey
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
johnson lim
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or