This is a migrated thread and some comments may be shown as answers.

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

1 Answer 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Erik
Top achievements
Rank 2
Erik asked on 13 Jul 2015, 08:57 AM

Hello,

 

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,

Erik

1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 16 Jul 2015, 05:41 AM
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.

Regards,
Angel Petrov
Telerik
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
Tags
Grid
Asked by
Erik
Top achievements
Rank 2
Answers by
Angel Petrov
Telerik team
Share this question
or