Grouping

4 posts, 0 answers
  1. Palanisamy
    Palanisamy avatar
    43 posts
    Member since:
    Jul 2015

    Posted 10 Apr 2016 Link to this post

    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.

     

     

  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2466 posts

    Posted 12 Apr 2016 Link to this post

    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!
     
  3. Palanisamy
    Palanisamy avatar
    43 posts
    Member since:
    Jul 2015

    Posted 13 Apr 2016 in reply to Konstantin Dikov Link to this post

    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?
  4. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2466 posts

    Posted 14 Apr 2016 Link to this post

    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!
     
Back to Top