Hi,
I'm using CustomFilterColumns in my RadGrid (as per the examples provided from Telerik). Because I don't want a postback to occur everytime a new filter selection occurs, I've set the AutoPostBack to false (this is within the CustomFilterColumn class) and created a button with CommandName="Filter" (see below) in the hope that when the user selects one (or many) filters, then clicks on the button, the appropriate filtering will be applied.
What I'm finding however, is that if I have more than 1 column with a filter value selected in the dropdown list and then I click on the "Apply Filter" button, only the first column's (from the LHS) filter gets applied to the grid and any subsequent filters are disregarded. This happens the first time. When I continue to select another filter (after the first filter is applied) and click on the "Apply Filter" button, then both these filters are applied correctly. I.e. The filterexpression is "([column1] = 'value1' AND [column2] = 'value2').
I have tried enabling view state as well as the EnableColumnsViewState property however this has not helped.
I'd appreciate any ideas/solutions for this.
Thanks and Regards,
Danielle.
I'm using CustomFilterColumns in my RadGrid (as per the examples provided from Telerik). Because I don't want a postback to occur everytime a new filter selection occurs, I've set the AutoPostBack to false (this is within the CustomFilterColumn class) and created a button with CommandName="Filter" (see below) in the hope that when the user selects one (or many) filters, then clicks on the button, the appropriate filtering will be applied.
What I'm finding however, is that if I have more than 1 column with a filter value selected in the dropdown list and then I click on the "Apply Filter" button, only the first column's (from the LHS) filter gets applied to the grid and any subsequent filters are disregarded. This happens the first time. When I continue to select another filter (after the first filter is applied) and click on the "Apply Filter" button, then both these filters are applied correctly. I.e. The filterexpression is "([column1] = 'value1' AND [column2] = 'value2').
I have tried enabling view state as well as the EnableColumnsViewState property however this has not helped.
I'd appreciate any ideas/solutions for this.
Thanks and Regards,
Danielle.
<
CommandItemTemplate>
<asp:Button Runat="server" ID="ClearAllFiltersLinkButton"Text="Clear All Filters" CommandName="ClearFilters" />
<asp:Button Runat="server" ID="ApplyFilterButton"Text="Apply Filtering" CommandName="Filter" />
</CommandItemTemplate>