show part of aggregate resut

8 posts, 0 answers
  1. Jimmy
    Jimmy avatar
    7 posts
    Member since:
    Apr 2016

    Posted 16 May Link to this post

    I have a RadGridView which contains several columns. I have Sum function for part of the columns which show decimal number. Now when I drag the columns which do not have Sum function that can show the Count function result, how to archive this? Just add Count function to those columns will show both of the result.
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 17 May Link to this post

    Hello Jimmy,

    My suggestion would be to take a look at this forum thread and the attached project in it to verify whether the approach illustrated there might fit your requirements. 

    Regards,
    Maya
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Jimmy
    Jimmy avatar
    7 posts
    Member since:
    Apr 2016

    Posted 17 May in reply to Maya Link to this post

    I download the solution in the forum you provide, but i can not build successfully. why?
  5. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 18 May Link to this post

    Hello Jimmy,

    Could you clarify what errors you get? 

    Regards,
    Maya
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  6. Jimmy
    Jimmy avatar
    7 posts
    Member since:
    Apr 2016

    Posted 23 May in reply to Maya Link to this post

    I copied the whole style from the solution, seems like it can work. But do I need to use the whole style? It's too complicated, I only need to show specified aggregate result on GroupRow. Any also, I got error when expand the group row, can you please help?

     

  7. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    371 posts

    Posted 25 May Link to this post

    Hello Jimmy,

    As the solution in the provided forum thread is quite old, it is possible that the provided control template has changed and that is the reason you're observing the aforementioned error.

    I've taken the liberty of creating a sample project for you to have a look at based on the solution my colleague offered. However, it uses the new GroupRenderMode="Flat" which leads to better performance as described in our Grouping Modes article. Bear in mind that when using this render mode, you should target the GroupHeaderRow element instead of the GridViewGroupRow as I've done in the sample project.

    Please have a look and let me know if this solution would for you.

    Regards,
    Dilyan Traykov
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  8. Jimmy
    Jimmy avatar
    7 posts
    Member since:
    Apr 2016

    Posted 30 May in reply to Maya Link to this post

    the group footer has the same display as group header. i just want to show on header. is there any way?
     
  9. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    371 posts

    Posted 30 May Link to this post

    Hello Jimmy,

    In order to hide the aggregate result from the footer cell, you will need to predefine the GridViewGroupFooterCell control template, use a similar approach as the one for the GroupHeaderRow and assign a custom converter for its ItemsSource binding.

    Regards,
    Dilyan Traykov
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top
UI for WPF is Visual Studio 2017 Ready