I have a grid with a dynamic datasource (i.e. the 1st 5 columns are the same, but depending on user input, the ending columns differ), and am trying to put a between date filter and drop down filter for a couple of the static columns. This datasource is filled by a stored procedure. So what I need to accomplish is to create a filter template dynamically on the static columns.
So is it possible to build and apply a templatefilter from the code-behind?
Here's my grid code:
So is it possible to build and apply a templatefilter from the code-behind?
Here's my grid code:
<telerik:RadGrid AutoGenerateColumns="true" ID="googleEarthAnalyticalGrid" OnNeedDataSource="grd_NeedDataSource" AllowFilteringByColumn="True" AllowSorting="True" DataKeyNames="PropertyID, SampleDate" ClientDataKeyNames="PropertyID, SampleDate" PageSize="6" ShowFooter="True" AllowPaging="True" runat="server" GridLines="Both" Skin="Windows7" onitemcommand="grd_ItemCommand" onitemcreated="grd_ItemCreated" GroupingSettings-CaseSensitive="false" oncolumncreated="grid_ColumnCreated" EnableLinqExpressions="true" ondatabound="googleEarthAnalyticalGrid_DataBound" oninit="googleEarthAnalyticalGrid_Init" onitemdatabound="googleEarthAnalyticalGrid_ItemDataBound1"> <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" /> <MasterTableView AutoGenerateColumns="true" EditMode="InPlace" AllowFilteringByColumn="True" ShowFooter="True" DataKeyNames="PropertyID, SampleDate" ClientDataKeyNames="PropertyID, SampleDate" > <CommandItemSettings ShowExportToExcelButton="true" /> </MasterTableView> </telerik:RadGrid>