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

Grouping

3 Answers 8 Views
This is a migrated thread and some comments may be shown as answers.
Palanisamy
Top achievements
Rank 1
Palanisamy asked on 10 Apr 2016, 03:12 PM

HI,

1. My First Clarification

I need to group concatenation of two hidden columns. Say for example - My Columns are 1. FirstName 2. LastName.

 

But I want to group by Cancatenation of EmpId - Dep (Example : Group BY: 1 - HR)

 

2. Second Clarification

Always I want to show the grouping columns with " No records found" message for individual group.

 

Ex : 1 - HR

No records found

2 - IT

FirstName  LastName

Palanisamy  N

 

. Please find the attached screenshot for further reference.

 

 

3 Answers, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 12 Apr 2016, 02:01 PM
Hi Palanisamy,

You can group by any field, but you will have to do it in the DataSource if there will be no visible column in the Grid for that field. Following is a dojo example:
As for your second requirement, I am not sure that I understand what you need to achieve, because each group is created for unique values for the grouped field, so if there are no items, no group will be created.


Best Regards,
Konstantin Dikov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Palanisamy
Top achievements
Rank 1
answered on 13 Apr 2016, 01:01 PM
Any possibility to display only group name.  Below that I want to show "no records found" message. That's my requirement. I have some data with flag (Means I have flag.Whichever flag has "failure") I need to show "no records found".  Whenever it has "success" flag I need to show the data. That's my requirement. In "Databound" is there any possibility?
0
Konstantin Dikov
Telerik team
answered on 14 Apr 2016, 12:11 PM
Hi Palanisamy,

As I have mentioned, having a group with no records in it is not possible, because the groups are created based on the existing values. 

If you have a predefined set of "groups" that you need to display, hierarchical grid might be what you are looking for, but you will need to use some custom logic for displaying "No records found" message:

Best Regards,
Konstantin Dikov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Palanisamy
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Palanisamy
Top achievements
Rank 1
Share this question
or