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

Guid EditorTemplate for MVC Grid

1 Answer 50 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Carl
Top achievements
Rank 1
Carl asked on 29 Mar 2014, 02:01 PM
Although the UI for ASP.NET MVC Grid ships with a set EditorTemplates out of the box, there does not appear to be an EditorTemplate for guids.

There are EditorTemplates for integer, number, currency, etc but not for guid.

Any reason why there is not any official Telerik EditorTemplate for guids?

So what's Telerik's recommended best practice?  Create our own EditorTemplate?  Convert back/forth between guids and strings in our ViewModels?

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 02 Apr 2014, 05:49 AM
Hi Carl,

We don't include an editor template for GUIDs out of the box because we don't know of any Kendo UI widget suitable for editing such kind of data. Html.EditorFor renders <input type="text"> for the GUID which you could use in your application. As far as we know the default ASP.NET MVC ModelBinder can seamlessly convert from string to Guid.

Regards,
Atanas Korchev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Carl
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or