Apostrophe in RadGrid filtering causing JavaScript error

6 posts, 0 answers
  1. Richard
    Richard avatar
    4 posts
    Member since:
    Feb 2015

    Posted 06 Feb 2015 Link to this post

    Using 2014.3.1209.40 DLL getting JavaScript error if user tries to filter a column with a string containing an apostrophe (single quote, chr(39))

    Same behavior can be seen in Telerik's own online demo: http://demos.telerik.com/aspnet-ajax/grid/examples/overview/defaultcs.aspx
    In Model column enter something like Joe's click the filter button, select Contains and you get:

    Line: 5022
    Error: Expected ')'

    Tried escaping the apostrophe as \' or /' or ['] - same result

    As an unrelated issue - tried entering HTML encoded string version Joe's and clicked filter/Contains - page redirected to "Oh, no!  It seems we've lost this page!"

  2. Pavlina
    Pavlina avatar
    6165 posts

    Posted 10 Feb 2015 Link to this post

    Hi Richard,

    This problem is already fixed in our Q1 2015 Beta release which is already available for download. You can test how the grid filtering is working with this version here:


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. Curtis
    Curtis avatar
    26 posts
    Member since:
    Jan 2008

    Posted 31 Jan 2016 in reply to Pavlina Link to this post

    I am using the latest 2016.1.113.45 and am getting a Javascript error when filtering with an apostrophe/single quote when the grid is in RenderMode="Mobile". When the grid is in RenderMode="Auto", the filtering with an apostrophe works.

    I will report the bug as well.

    Timestamp: 1/31/2016 10:29:12 PM
    Error: SyntaxError: missing ) after argument list
    Source File: http://localhost:86/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl00_ctl00_rsm_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%2c+Version%3d2016.1.113.45%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3aed16cbdc%3a56e9f55f%3af46195d3%3a2a733ecd%3ab7778d6c%3ae085fe68%3a531d45cc%3aa00338a7%3a8bd58b44%3a2d1fc316%3a72040467
    Line: 1, Column: 143
    Source Code:

  4. Pavlina
    Pavlina avatar
    6165 posts

    Posted 02 Feb 2016 Link to this post

    Hello Curtis, 

    Indeed the issue you are facing exists in the latest version and it is already logged in our bug tracking system. There is also a feedback item on the matter from where you can follow its progress :

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  5. Raymond
    Raymond avatar
    24 posts
    Member since:
    Jul 2014

    Posted 07 Apr Link to this post

    This also appears to impact scenarios where the field containing the apostrophe is the detail key field in a master/detail relationship.
  6. Pavlina
    Pavlina avatar
    6165 posts

    Posted 12 Apr Link to this post

    Hello Raymond,

    You can add the mentioned scenario in the feedback item, so we can have it in mind while fixing the issue.

    Telerik by Progress
    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