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

Unexpected token { in localized ClientDetailTemplate

1 Answer 86 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Petr
Top achievements
Rank 1
Petr asked on 12 Oct 2015, 02:03 PM

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.

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 14 Oct 2015, 09:18 AM

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
Tags
Grid
Asked by
Petr
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or