Unexpected token { in localized ClientDetailTemplate

2 posts, 0 answers
  1. Petr
    Petr avatar
    9 posts
    Member since:
    Feb 2013

    Posted 12 Oct 2015 Link to this post

    Hello,
    I have a problem with a client detail template with a grid. If Kendo is localized into Czech can not open the detail view. Commented <globalization culture = "cs-Cz" uiCulture = "cs-CZ" /> in the web.config file to fix the problem.
    I attach a simple project on which it is seen.

    I delete kendo scripts and css from project.

  2. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 14 Oct 2015 Link to this post

    Hello Petr,

    Thanks for the sample. The issue is caused by few of the Editor's ImageBrowser and FilterBrowser messages. It seems that they got incorrectly encoded by the framework. Thus I suggest you to override them in the Editor template similar to the following:

    @(Html.Kendo().EditorFor(m => m).Messages(messages => messages    
          .ImageBrowser(im => im.InvalidFileType(" ").OverwriteFile(" ").DeleteFile(" "))
          .FileBrowser(im => im.InvalidFileType(" ").OverwriteFile(" ").DeleteFile(" "))
          )
      )

    Regards,
    Rosen
    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
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top