Hi, I want to change the GroupAreaText in the code behind similar like grid.GroupingSettings.EmptyGroupAreaText = "123".
How can I do this? I use the "BoundDataField" object and when I group a column I want to display the "Header.Text" value inside the "GroupAreaText"!
BR
Hello,
Thank you for posting in the Infragistics community !
I will prepare a sample for your reference that demonstrates how this can be achieved and upload it in this thread.
Please find the attached sample below. It handles the GroupedRowInitialize event to modify the default GroupedRow text. Please let me know if this meets your requirement.
Thank you for your feedback !
As you notice both approaches are possible. Initially you would want to add columns to the WebHierarchicalDataGrid, as shown in the documentation:
http://help.infragistics.com/Help/Doc/ASPNET/2014.2/CLR4.0/html/WebHierarchicalDataGrid_Data_Binding.html
Of course depending on the scenario the other would be recommended, as our colleague has suggested in the "Dynamical data binding" thread. Please let me know if adding columns to the WebHierarchicalDaataGrid causes other issues in your application. If this is not the case then you are fine going for this.
Looking forward to hearing from you.
Hi, unfortunately it is not working. Maybe you could solve the issue (see attachment)
Hi,
Thank you for the sample shared. I will take my time to investigate it and will update you with my findings.
I was able to run your sample and could not understand what is not working. After I do grouping the Header Text of the given column is displayed, as was your demand. Please see the screenshot below:
Hi, please switch between Data A and Data B and you will see that the View-State is corrupt and the displayed data are wrong! If you only push one button everything is working fine. But if you Switch between A and B it is not working corrclty!
Again I do not see any issues with the text displayed in the buttons rendered after grouping. The other issue you are experiencing is not related to the one discusses in this thread. I had a look at your code and it seems that you are defining columns that are not valid for the current dataSource that the grid is bound to.
I assume this is causing other issues. Please try to refactor your code so that you are defining columns valid for the current dataSource. If issue still persists please do not hesitate to contact us.
However I would like to ask you to open a new thread/case for every different issue you are facing, so if you need further assistance you can go and post a new thread regarding the current matter. This is Infragistics' policy and is intended to enable better searching and tracking and also helps us to provide better support.
Please let me know if you have further questions regarding the text in buttons after grouping.