I've implemented dropdown filters and have a problem filtering items that have single or double quotes.
<FilterTemplate>
<telerik:RadComboBox RenderMode="Lightweight" ID="RadComboBoxArea" DataSourceID="SqlDataSource9" DataTextField="area"
DataValueField="area" Width="200px" AppendDataBoundItems="true" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("area").CurrentFilterValue %>'
runat="server" OnClientSelectedIndexChanged="AreaChanged">
<Items>
<telerik:RadComboBoxItem Text="All" />
</Items>
</telerik:RadComboBox>
<telerik:RadScriptBlock ID="RadScriptBlockArea" runat="server">
<script type="text/javascript">
function AreaChanged(sender, args) {
var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
tableView.filter("area", args.get_item().get_value(), "EqualTo");
alert(args.get_item().get_value());
}
</script>
</telerik:RadScriptBlock>
</FilterTemplate>
The problem seems to be in the statement: tableView.filter("area", args.get_item().get_value(), "EqualTo");
I can see the value from args.get_item().get_value() and it looks fine, the single and double quotes are there (see alert I put in to view the value).
Any suggestions or work arounds? Is this a problem with the Grid?