Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
30
Hierarchical Data Grid with custom summaries
posted

Hi!

Context: I am currently working on a project that is using WebHierarchicalDataGrid (ig v18.1), I was asked to add the summary "sum" for TimeSpan dataType Columns. This columns are added dynamically.

Now, yes, I currently know that sum only works for numerical types, so I decided to create a Custom Summary. I should be easy.

Everything was going empirically well. Until I realize that for some reason It seems that it is not the same process for adding a custom summary for WebDataGrid and for WebHierarchicalDataGrid.

I am expecting that a custom summary for WebHierarchicalDataGrid would behave like the example for WebDataGrid (https://ko.infragistics.com/samples/aspnet/data-grid/summaries-custom-summary) but i can not find a working example of WHDG (It does not even appears on https://ko.infragistics.com/samples/aspnet/hierarchical-data-grid/summaries so it gives me the imppression that I could not be implemented on WHDG)

Recalling that columns are added dynamically, I cannot fix any keycolumn as documentation examples are shown And I cannot use the ig wazard/helper.

Any lights to follow on this situation.?

Thanks in advance!

Parents
  • 2680
    Offline posted

    Hello,

    Thank you for posting to Infragistics Community!

    While it is true that there is no demo of applying custom summaries to the WebHierarchicalDataGird, according to this page from our documentation, they are supported.

    Attached you will find a minimal sample with an hierarchical grid having its data and hierarchy dynamically defined as well as a custom summary applied. Please, check it out and let me know if you need further assistance on the matter. Although, I would like to point out that, even with a dynamic setup, the columns have to have keys assigned in order to define summaries, or perform any other relevant operations with them.

    However, please keep in mind that version 18.1 is retired and not longer eligible for developer support services. More info can be found on our Product Lifecycle page.

    Best regards,
    Bozhidara Pachilova
    Associate Software Developer

    WHDGDynamicColumns.zip

Reply Children