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://es.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://es.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!
With your first example I could determine that I was missing the fact that you could send a "WebDataGrid" from the hierarchical one:
but yeah. I had some issues with a summary being fixed on the first example. I will try it your example. I will try to upgrade the last version as well.
I will let you know any advance.Thank you! Happy new year in advance!
Hello,
I am reattaching the sample from my previous reply containing a fix related to assigning the summaries only on the first load, as the initial version could cause errors. In addition, the sample is a bit simplified, and the bands and columns are auto generated.
Please, test the newer version of the sample and please, excuse the inconvenience. I hope the example helps implement custom summaries in the WebHierarchicalGrid on your side. If you require any further assistance on the matter, please, let me know.
Best regards, Bozhidara Pachilova Associate Software Developer
1778.WHDGDynamicColumns2.zip
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.
WHDGDynamicColumns.zip