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

Add separator rows with some title

2 Answers 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Matias
Top achievements
Rank 1
Matias asked on 13 Dec 2016, 08:52 PM

Hi,

I need to separate the data I recieve from the database when I'm showing it in the grid but I don't know how to do it. I was wondering if it's possible to do something like the attached file. 

Thanks a lot.

2 Answers, 1 is accepted

Sort by
0
Matias
Top achievements
Rank 1
answered on 13 Dec 2016, 09:18 PM

My apologies. Thinking about this problem, I realised that what I really need is the possibility to group the data manually before returning it, because the user won't be able to do that due to business rules. My grid is using ajax binding.

Thanks a lot.

0
Konstantin Dikov
Telerik team
answered on 15 Dec 2016, 12:45 PM
Hi Matias,

You can set the initial group/s in the definition of the Grid's DataSource:
.DataSource(dataSource => dataSource
    .Ajax()
    .Group(groups => groups.Add(p => p.YourFieldName))
    

Please give this a try and let me know if further assistance is needed on this matter.


Regards,
Konstantin Dikov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Matias
Top achievements
Rank 1
Answers by
Matias
Top achievements
Rank 1
Konstantin Dikov
Telerik team
Share this question
or