How to Properly escape a hash in a foreign key column

2 posts, 0 answers
  1. Adam
    Adam avatar
    8 posts
    Member since:
    Aug 2011

    Posted 22 Oct 2013 Link to this post

    some of the data in my foreign key column (loaded from database) contains a # character. How do I properly escape that?

    I am loading data just like the foreign key column example in the MVC example.

    Without doing anything the grid fails to load and display anything.

    I tried a single backspace "\#" (controller complains not proper escape sequence)

    I used a double "\\#" which loads the grid but displays Item \#1 vs. Item #1

    What is the proper way to escape this # character?
  2. Daniel
    Admin
    Daniel avatar
    2214 posts

    Posted 24 Oct 2013 Link to this post

    Hello Adam,

    The easiest option is to use a custom template for the column so that the data is not added to the template. I attached a sample project that demonstrates this scenario. 

    Regards,
    Daniel
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top