Hello,
Recently I've made a webgrid where the data is grouped by a few columns. This works without problems.Now, however, i've tried to add filtering to the page. At first I set the filtermode to SiblingRowsOnly.This had the effect that the filter is applied to the segment of the grid that is expanded, but not the rest.Also, trying to undo the filter in that case did not work. All I could do is reload the page.
Next I tried setting the filtermode to AllRowsInBand. This also works, but only if all grouped lines are expanded. If you expand just on line and try to apply the filter, you get a little 'timer' animation, but the dropdownlist for the filter does not show.
So what I'm looking for is a way to apply a filter to the entire grid, regardless of how many grouped lines have been expanded.
Has anyone encountered this problem and/or knows how to resolve this? your help would be greatly appreciated.
Hi DVervecken,
Please let me know if you need any additional assistance regarding this matter.
If I understand your scenario, you are want to apply filtering to the grid where you are grouping columns. And, you want the filter to apply to the entire grid such that when you are grouping columns these groups would be able to be filtered as well.
To accomplish this functionality in code-behind, you would handle the InitializeLayout event:
protected void UltraWebGrid1_InitializeLayout(object
sender, Infragistics.WebUI.UltraWebGrid.LayoutEventArgs e) { this.UltraWebGrid1.DisplayLayout.FilterOptionsDefault.AllowRowFiltering = Infragistics.WebUI.UltraWebGrid.RowFiltering.OnServer;
{
}
When you run your sample, you would be able to filter at the band level as well as within the groups:
I wanted to check back with you to see if you had resolved this problem, or if you are still in need of assistance regarding this matter.