\Kendo\UI\PropertyGridItem

A PHP class representing the item setting of PropertyGridItems.

Methods

description

Sets the description for the property.

Returns

\Kendo\UI\PropertyGridItem

Parameters

$value string

Example

<?php
$item = new \Kendo\UI\PropertyGridItem();
$item->description('value');
?>

editable

The JavaScript function that is executed when the value cell is about to be opened for editing. The returned result will determine whether an editor will be created.

Returns

\Kendo\UI\PropertyGridItem

Parameters

$value boolean|\Kendo\JavaScriptFunction

Example - using boolean

<?php
$item = new \Kendo\UI\PropertyGridItem();
$item->editable(true);
?>

Example - using \Kendo\JavaScriptFunction

<?php
$item = new \Kendo\UI\PropertyGridItem();
$item->editable(new \Kendo\JavaScriptFunction('function() { }'));
?>

editor

Provides a way to specify a custom editing UI for the value of the property. To create the editing UI, use the container parameter.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

Returns

\Kendo\UI\PropertyGridItem

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

<?php
$item = new \Kendo\UI\PropertyGridItem();
$item->editor('value');
?>

Example - using \Kendo\JavaScriptFunction

<?php
$item = new \Kendo\UI\PropertyGridItem();
$item->editor(new \Kendo\JavaScriptFunction('function() { }'));
?>

editorOptions

Defines the component options for the custom property value UI editor that is set via the items.editor configuration. For further info check the Form API: field.

Returns

\Kendo\UI\PropertyGridItem

Parameters

$value ``

field

Maps the item configuration to the model property.

Returns

\Kendo\UI\PropertyGridItem

Parameters

$value string

Example

<?php
$item = new \Kendo\UI\PropertyGridItem();
$item->field('value');
?>

format

The format that is applied to the value before it is displayed. Takes the {0:format} form where format is a standard number format, custom number format, standard date format or a custom date format.

Returns

\Kendo\UI\PropertyGridItem

Parameters

$value string

Example

<?php
$item = new \Kendo\UI\PropertyGridItem();
$item->format('value');
?>

group

Sets the name of the group to which the property will belong, if grouping is enabled. Only root level items can be grouped.

Returns

\Kendo\UI\PropertyGridItem

Parameters

$value string

Example

<?php
$item = new \Kendo\UI\PropertyGridItem();
$item->group('value');
?>

items

Additional configuration options for the nested properties of the model, if any.

Returns

\Kendo\UI\PropertyGridItem

Parameters

$value array

Example

<?php
$item = new \Kendo\UI\PropertyGridItem();
$item->items(array());
?>

template

The template which is rendered for the property's value.

Returns

\Kendo\UI\PropertyGridItem

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

<?php
$item = new \Kendo\UI\PropertyGridItem();
$item->template('value');
?>

Example - using \Kendo\JavaScriptFunction

<?php
$item = new \Kendo\UI\PropertyGridItem();
$item->template(new \Kendo\JavaScriptFunction('function() { }'));
?>

validation

Specifies the validation rules for the field.

Returns

\Kendo\UI\PropertyGridItem

Parameters

$value ``
In this article
Not finding the help you need?