Batch Editing Grid input doesn't have kendo style

2 posts, 1 answers
  1. Gaetan
    Gaetan avatar
    1 posts
    Member since:
    Nov 2010

    Posted 15 Mar 2016 Link to this post

    I define a batch editing grid with the wrapper ASP.NET MVC, exactly like the demo :

    But the result is different. Fields that appear when editing a cell are not kendo widget.

    By example, the unit price field is a simple input tag with the class "text-box". It's not a kendo widget numerictextbox.


    I make a sample project with exactly the same file editing.cshtml.

  2. Answer
    Dimiter Topalov
    Dimiter Topalov avatar
    1236 posts

    Posted 17 Mar 2016 Link to this post

    Hi Gaetan,

    You need to apply the appropriate DataType attributes to the corresponding properties of the View Model in order to make the application use the Editor Templates, specified for the given data type:


    [DisplayName("Unit price")]
    [Range(0, int.MaxValue)]
    public decimal UnitPrice
      get; set;
    [DisplayName("Units in stock")]
    public int UnitsInStock
      get; set;

    I hope this helps.

    Dimiter Topalov
    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
Back to Top