Declined
Last Updated: 01 Jul 2015 14:06 by Timothy
Timothy
Created on: 30 Jun 2015 16:52
Category: Kendo UI for jQuery
Type: Feature Request
1
add Kendo UI HTML component definition to the Model fields config
For Kendo UI, it would be great if you could add a kendo configuration to a Model's field which would be used to auto display the html component, here is an example:

var newModel = kendo.data.Model.define({
  id: "id",
  fields: {
    state: {
      type: "string",
      defaultValue: "",
      validation: { required: true },
      component: {
        role: "kendoDropDownList",
        dataSource: {
          data: [
            'Alabama',
            'Alaska',
            'Arizona'
          ]
        }
      }
    }
  }
});
3 comments
Timothy
Posted on: 01 Jul 2015 14:06
By default, Kendo UI already provides this integration, as shown below in the Grid Popup editing feature.  Kendo UI is providing simple UI based upon the field's type, my suggestion would extend this feature to add customization to each field's UI.

http://demos.telerik.com/kendo-ui/grid/editing-popup
ADMIN
Telerik Admin
Posted on: 01 Jul 2015 13:57
The model and UI abstractions should be separated by definition, Timothy. 

You can relate the model with the UI (and vice versa) via the data model and view definitions, without making the UI definition part of the model one.

Let me know if I am missing something important here.
Timothy
Posted on: 30 Jun 2015 16:58
Sorry the spaces did not show up correctly