Problem with filtering double and single quotes

2 posts, 0 answers
  1. Kenneth
    Kenneth avatar
    5 posts
    Member since:
    Feb 2016

    Posted 07 Jul 2017 Link to this post

    I've implemented dropdown filters and have a problem filtering items that have single or double quotes.

    <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">
    <telerik:RadComboBoxItem Text="All" />
    <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");

    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?

  2. Eyup
    Eyup avatar
    4085 posts

    Posted 12 Jul 2017 Link to this post

    Hello Kenneth,

    I've already replied to your ticket with ID: 1118516. I suggest that we continue our technical conversation on the mentioned thread.

    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top