Align aggregated results with related columns

6 posts, 0 answers
  1. Maciej Czerwiakowski
    Maciej Czerwiakowski avatar
    10 posts
    Member since:
    Oct 2009

    Posted 04 Jan 2010 Link to this post

    Hi,

    How can I align results of aggregated functions to columns in table? In my particular case I have GridView with columns for each hour (H1-H24) and few other columns like City, Country, etc. User is able to group data by City and Country column. When grouping is on I would like to display in group header result of aggregated sum function fore each hour column H1-H24, and I have to huge problems:

    1. Results width is much bigger then whole GridView width.
    2. Results aren't aligned with related columns in GridView.

    How can I solve this two problems?

    Regards,
    MC
  2. Stefan Dobrev
    Admin
    Stefan Dobrev avatar
    790 posts

    Posted 07 Jan 2010 Link to this post

    Hi Maciej,

    Currently there is no built-in way to achieve your requirements. There are workaround ways to implement something similar using GridViewFooterRow in the group header, but they are very limited.

    Regards,
    Stefan Dobrev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Maciej Czerwiakowski
    Maciej Czerwiakowski avatar
    10 posts
    Member since:
    Oct 2009

    Posted 08 Jan 2010 Link to this post

    Hi Stefan,

    Could you tell me what kind of workaround and related limitations we are talking about? I would be appreciate for any example. Frankly speaking this is key feature in one of our software module and I don`t want to change controls provider because of this.
    BTW: Are you going to implement any mechanisms to achieve this?

    Regards,
    MC
  5. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 14 Jan 2010 Link to this post

    Hi Maciej,

    You can get the child grid header cells and bind Width property to relative parent column ActualWidth however currently this will not work correctly during column resize. Once we fix this will post an example.

    Regards,
    Vlad
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Dirk Liebich
    Dirk Liebich avatar
    17 posts
    Member since:
    Jun 2010

    Posted 31 Oct 2011 Link to this post

    Could we get a code example for what you're talking about here?
  7. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 01 Nov 2011 Link to this post

    Hello Dirk Liebich,

    I have just replied to the other forum thread you posted on the same topic and attached a sample project illustrating the above-mentioned workaround.
    Let me know in case you need any further assistance.
     

    All the best,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top
UI for WPF is Visual Studio 2017 Ready