Guid EditorTemplate for MVC Grid

2 posts, 0 answers
  1. Carl
    Carl avatar
    203 posts
    Member since:
    Oct 2012

    Posted 29 Mar 2014 Link to this post

    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?
  2. Atanas Korchev
    Atanas Korchev avatar
    8462 posts

    Posted 02 Apr 2014 Link to this post

    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.

    Atanas Korchev

    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.

Back to Top