Is it possible to put data in the group header row, that isn't a part of the group?

4 posts, 0 answers
  1. Rod
    Rod avatar
    71 posts
    Member since:
    Jan 2011

    Posted 27 Feb 2013 Link to this post

    I'm trying to use the RadGridView control for a WPF app (.NET 4.5). We've got a WCF service which runs a SQL query that looks at 2 tables in 1 database, and a third table in a secod database. The WCF service returns all of the results. The results include things like client number, case number, client's first and last names, date of birth, etc. We want to group the results by the client number, and that's easily done, but what we also want to do is display things like the client's first and last name, DOB, etc in the group header. Clearly, however, we don't want to group by the client's name, or DOB, etc. Only by the client number (the case number does change from one record to the next and some other fields do too, but aren't relevant to this discussion).

    My question is a simple one, is it possible to put into the group header data that isn't a part of the group, like client's first and last name, DOB, etc? If so, how is that done. But if not, then how do we get the data in a way that the RadGridView will display it the way we need it displayed?
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 27 Feb 2013 Link to this post

    Hello,

     You can use the GroupHeaderTemplate property of grid columns to put anything in the group header. 

    Regards,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Rod
    Rod avatar
    71 posts
    Member since:
    Jan 2011

    Posted 27 Feb 2013 Link to this post

    Hi Vlad,

    Thank you for your reply. Could you please point me to an example that uses two or more items in the group header template?
  4. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 28 Feb 2013 Link to this post

    Hello,

     We do not have demo where we are using outside of grid data for group headers however on this demo every single column is with declared GroupHeaderTemplate. You can find the same example in your local copy of our WPF demos?

    All the best,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top