apologies in advance if I missed something obvious and this is silly question :)
I'm using GroupBy on a single band and Grouping was working well until I canged the columns to from BoundDataField to TemplateDataField. Then I figured the grouping on the template columns does not work anymore...
Do I have to enforce the grouping in code? How do I go about using GroupBy with template columns?
Thanks in advance
I thought it will be better to re-phrase my question. My guess is that the Grouping down not work with template columns because they are not bound...
My question is: what is the best way to enable the grouping and filtering on a template column but do the actual work on a hidden databound column?
Any samples will be great...
As you mentioned in your reply the Grouping and Filtering of the Template columns is not available currently for the grid because the data in these columns is not bound and can be with many different types (like images, buttons etc.) that may not support these actions.
I am sending you a simple example that shows how you can group and filter the grid on a hidden column from Code-Behind.
Review the sample and let me know if you have further questions.
thank you for the sample code :)
Now one last question if a user initiates a groupby or a filering by dragging a column or enters a filer criteria in the colum respectively what is the event to hook to be able to replace the default grid behavior for each action - groupby and filtering?
Thanks in advance!
There is a “GroupedColumnChanging()” event that is fired before change in the GroupedColumns collection and that can be canceled (to not allow grouping on the dragged column to occur) - http://help.infragistics.com/Help/NetAdvantage/ASPNET/2010.3/CLR4.0/html/Infragistics4.Web.v10.3~Infragistics.Web.UI.GridControls.WebHierarchicalDataGrid~GroupedColumnsChanging_EV.html
For the filtering there is “DataFiltering()” event that is raised just before the filtering is applied for the specified column. This event is also cancelable - http://help.infragistics.com/Help/NetAdvantage/ASPNET/2010.3/CLR4.0/html/Infragistics4.Web.v10.3~Infragistics.Web.UI.GridControls.WebHierarchicalDataGrid~DataFiltering_EV.html
All events for the WHDG with brief description can be found here - http://help.infragistics.com/Help/NetAdvantage/ASPNET/2010.3/CLR4.0/html/Infragistics4.Web.v10.3~Infragistics.Web.UI.GridControls.WebHierarchicalDataGrid_members.html
Let me know if you need to do this is Client-Side since this events are Server-Side events.
Can you advise the alternative Client Side events please.
I checked the online docs but can't find them...
I need to do some client side manuipulations on the grouped rows and I need something like GroupedColumnChanged on the client side
thanks for the great support :)