listView with GroupCount and ColumnName For Each Group

1 Answer 64 Views
ListView
Mohamad Javad
Top achievements
Rank 1
Iron
Mohamad Javad asked on 28 Aug 2023, 01:33 PM

Hello
  In the ListView, I need to divide the data into 4 groups (GroupItemCount=4)

and the header of each group should have a column name like the needed.png picture

 

But no matter how hard I tried, I couldn't set the listview so that the names of the columns in each group are displayed, and the output is like the picture show.png

Help me please


1 Answer, 1 is accepted

Sort by
0
Attila Antal
Telerik team
answered on 31 Aug 2023, 09:56 AM

Hi Mohamad,

The ListView supports two types of Grouping. One of which is the UI Grouping (Basic Grouping) and the other is the Data Grouping.

We have documentation and demos with instructions to set up the Grouping for both. Please review the links below:

UI Grouping - Groups are created in the UI regardless of the Data

Data Grouping - Groups are created based on the data coming from the database

Regards,
Attila Antal
Progress Telerik

Heads up! Telerik UI for ASP.NET AJAX versions for .NET 3.5 and 4.0 are retired. Progress will continue shipping assemblies compatible with .NET 4.5 and later. See whether this affects your apps in this article.
Mohamad Javad
Top achievements
Rank 1
Iron
commented on 01 Sep 2023, 06:15 AM

hi
thanks for your response.
I tested both Basic Grouping and Data Grouping and I could not get the required.png picture output.
Please give me the sample code. Thank you

Mohamad Javad
Top achievements
Rank 1
Iron
commented on 05 Sep 2023, 12:35 PM

Hello
If listView doesn't have this feature in the needed.png photo, maybe GridView can solve my problem.
In this way, the GridView will grow horizontally without scrolling with constant promotion. Is this possible?
Thank you for helping me
Attila Antal
Telerik team
commented on 05 Sep 2023, 12:51 PM

Hi Mohamad,

The design you have described is not a built-in functionality but a Layout structure that you will have to create. There are containers (Templates) for the Layout, Items, and Edit items, which the developer will have to design/create the way they want.

If you check the demo links I shared, you can see that both examples have different layout designs. That means you are free to customize the layout in any way you like.

Tags
ListView
Asked by
Mohamad Javad
Top achievements
Rank 1
Iron
Answers by
Attila Antal
Telerik team
Share this question
or