items.editorString|Function
Provides a way to specify a custom editing UI for the value of the property. To create the editing UI, use the container parameter.
- The editing UI has to contain an element with a set
nameHTML attribute. The attribute value should be set tovalue.- The validation settings that are defined in the
model.fieldsconfiguration will not be applied automatically. In order for the validation to work, you (the developer) are responsible for attaching the corresponding validation attributes to the editor input. If the custom editor is a component, to avoid visual issues, you can customize the tooltip position of the validation warning.
When used as String, defines the editor component type. Set the options for the component via the items.editorOptions.For further info check the Form API: field
Example
<div id="propertyGrid"></div>
<script>
$("#propertyGrid").kendoPropertyGrid({
items: [
{ field: "name", editor: "TextBox" },
{ field: "price", editor: "NumericTextBox" },
{ field: "category", editor: "DropDownList" }
],
model: {
name: "Laptop",
price: 999,
category: "Electronics"
}
});
</script>