Add separator rows with some title

3 posts, 0 answers
  1. Matias
    Matias  avatar
    26 posts
    Member since:
    Mar 2016

    Posted 13 Dec 2016 Link to this post

    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. Matias
    Matias  avatar
    26 posts
    Member since:
    Mar 2016

    Posted 13 Dec 2016 Link to this post

    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.

  3. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2466 posts

    Posted 15 Dec 2016 Link to this post

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