Hello Telerik,
I was able to implement the Filter with MS DropdownList Instead of Textbox solution posted in the Telerik Help Site.
However, I am stumped as to why the dropdown filter works on some entries but not on some. See image below:
Below is how I declared my RadGrid in my .ASPX page:
<telerik:RadGrid ID=
"rgOT_Classifications"
runat=
"server"
Skin=
"Default"
GridLines=
"both"
BorderStyle=
"NotSet"
BorderColor=
"#336699"
BorderWidth=
"3"
PageSize=
"3"
Width=
"100%"
AllowPaging=
"true"
AllowFilteringByColumn=
"true"
AutoGenerateColumns=
"false"
AllowSorting=
"true"
ShowStatusBar=
"true"
AllowAutomaticDeletes=
"false"
AllowAutomaticInserts=
"false"
ItemStyle-BackColor=
"#f0f8ff"
AlternatingItemStyle-BackColor=
"White"
AllowAutomaticUpdates=
"false"
>
<PagerStyle Mode=
"NextPrevAndNumeric"
/>
<MasterTableView Width=
"100%"
DataKeyNames=
"CLASSIFICATION"
TableLayout=
"Auto"
Caption=
"<strong><big>CLASSIFICATIONS</big></strong>"
CommandItemDisplay=
"Top"
EditMode=
"EditForms"
ExpandCollapseColumn-ButtonType=
"pushButton"
AllowMultiColumnSorting=
"true"
Name=
"Classifications"
ShowHeadersWhenNoRecords=
"true"
>
<CommandItemTemplate>
<table width=
"98%"
style=
"margin:10px auto;"
>
<tr>
<td align=
"left"
style=
"vertical-align:middle;"
>
<asp:ImageButton ID=
"ImageButton1"
runat=
"server"
ImageUrl=
"~/images/add.png"
CommandName=
"InitInsert"
ImageAlign=
"Middle"
/>
<asp:LinkButton id=
"btnAddNewRecord"
runat=
"server"
CommandName=
"InitInsert"
Font-Size=
"10"
style=
"vertical-align:middle;"
ToolTip=
"Click to add a new Classification."
>Add
New
Record
</asp:LinkButton>
</td>
<td align=
"right"
>
<div title=
"Click to clear the current filter criteria."
style=
"float:left;"
>
<asp:ImageButton ID=
"ImageButton2"
runat=
"server"
ImageUrl=
"~/images/clearfilter.gif"
CommandName=
"ClearFilter"
ImageAlign=
"Middle"
/>
<asp:LinkButton id=
"btnClearFilter"
Font-Size=
"10"
style=
"vertical-align:middle;"
runat=
"server"
CommandName=
"ClearFilter"
>Clear Filter
</asp:LinkButton>
</div>
<div title=
"Click to reload data into the grid."
style=
"float:right;"
>
<asp:ImageButton ID=
"ImageButton3"
runat=
"server"
ImageUrl=
"~/images/Refresh.gif"
CommandName=
"Refresh"
ImageAlign=
"Middle"
/>
<asp:LinkButton style=
"vertical-align:middle;"
id=
"btnRefresh"
Font-Size=
"10"
runat=
"server"
CommandName=
"Refresh"
>Refresh
</asp:LinkButton>
</div>
</td>
</tr>
</table>
</CommandItemTemplate>
<Columns>
<telerik:GridEditCommandColumn UniqueName=
"Edit"
ItemStyle-HorizontalAlign=
"center"
>
</telerik:GridEditCommandColumn>
<telerik:GridBoundColumn DataField=
"CLASSIFICATION"
HeaderText=
"Classification"
UniqueName=
"CLASSIFICATION"
AutoPostBackOnFilter=
"true"
CurrentFilterFunction=
"Contains"
ShowFilterIcon=
"false"
>
</telerik:GridBoundColumn>
<custom:MyCustomFilteringColumn HeaderText=
"CLASS 1"
DataField=
"CLASSIFICATION"
UniqueName=
"CLASS1"
AutoPostBackOnFilter=
"false"
DataType=
"System.String"
CurrentFilterFunction=
"Contains"
>
</custom:MyCustomFilteringColumn>
<telerik:GridButtonColumn ButtonType=
"LinkButton"
CommandName=
"Delete"
Text=
"Delete"
UniqueName=
"DeleteColumn"
ItemStyle-HorizontalAlign=
"center"
>
</telerik:GridButtonColumn>
</Columns>
<EditFormSettings UserControlName=
"~/maintenance/Edit_OT_Classifications.aspx"
EditFormType=
"WebUserControl"
PopUpSettings-Modal=
"true"
PopUpSettings-Width=
"35%"
>
</EditFormSettings>
</MasterTableView>
</telerik:RadGrid>
It's odd that there is no pattern as to why some dropdown entries work and some don't. If you could create it on your end and let me know if it worked for you or not and if you have a solution for this.
Thanks,
Virgil