Batch edit: Javacript error with values containing apostrof/quote (')

2 posts, 0 answers
  1. Erik
    Erik avatar
    314 posts
    Member since:
    Feb 2008

    Posted 13 Jul 2015 Link to this post



    Version: 2015.0001.0401.0045

    When using batch edit, and changing a cell's value to a value containing a apostrophe/quote ( ' ) or 2, and pressing "Save Changes", the __doPostback function failed with error: Uncaught Syntax Error: missing ) after argument list.

    The output of the function is like this:

    __doPostBack('RadGrid_TimeReg','FireCommand:RadGrid_TimeReg$ctl00;BatchEdit;u(0,.,ProjectList,.,Jasper - Werk Order #0005 'Jasper' (52),.,TimeKindInfo,.,Ontvetten,.,);.;')

    As you can see, 'Jasper' breaks the code.

    I consider this a bug.


    Kind regards,


  2. Angel Petrov
    Angel Petrov avatar
    1152 posts

    Posted 16 Jul 2015 Link to this post

    Hi Erik,

    There was a similar problem in the older version of the controls but is now resolved. Please upgrade to the latest version and test the application again. If the issue persists please share with us the markup and code-behind of the page so we could examine the implementation. That way we will try to simulate the behavior on our end and find its root cause.

    Angel Petrov
    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
Back to Top