Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can we use escape in dynamically added fields of Kendo grid?

I have a field in kendo grid like shown in the below code.Data dynamically append using AJAX call in MVC.

    {
      field: "",
      title: "Name",
      template:"<input type='button' value='Name'/>"
      width: 100
     },

But When the name contains ' or " symbol, the display name showing till that symbol only.

For example if the name is Kevin's doe ,in the view am getting only the name Kevin only .How can i escape from this?Is there any way to do this? I need to get the attributes into a jquery function,there also am getting half of the name only


1 Answers

Another solution is:

{
  field: "",
  title: "Name",
  template:"<input type='button' value=\"Name\" />",
  width: 100
 },
like image 115
Martin D. Avatar answered Dec 08 '25 19:12

Martin D.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!