简体   繁体   中英

encoding ampersand in asp.net mvc kendo grid column filter

While filtering the column values of the Kendo grid in asp.net mvc application if we use the text containing ampersand ie "some & value" , it throws a unterminated string error. The reason is that the "&" needs to be encoded in the query string. How to do it? Which event of the kendo grid should this be done at and how?

$(document).ready(function(){
      $("#grid").kendoGrid({
      //...
        columns: [
           {
               field: "Column containing HTML",
               encoded: false
           }
        ]          
      });
 });

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM