\Kendo\UI\GridColumnMenuColumns

A PHP class representing the columns setting of GridColumnMenu.

Methods

addGroup

Adds one or more GridColumnMenuColumnsGroup to the GridColumnMenuColumns.

Returns

\Kendo\UI\GridColumnMenuColumns

Parameters

$value[, $value2, ...] \Kendo\UI\GridColumnMenuColumnsGroup|array

Example - using \Kendo\UI\GridColumnMenuColumnsGroup

<?php
$columns = new \Kendo\UI\GridColumnMenuColumns();
$group = new \Kendo\UI\GridColumnMenuColumnsGroup();
$title = 'value';
$group->title($title);
$columns->addGroup($group);
?>

Example - using array

<?php
$columns = new \Kendo\UI\GridColumnMenuColumns();
$title = 'value';
$columns->addGroup(array('title' => $title));
?>

Example - adding more than one GridColumnMenuColumnsGroup

<?php
$columns = new \Kendo\UI\GridColumnMenuColumns();
$first  = new \Kendo\UI\GridColumnMenuColumnsGroup();
$second = new \Kendo\UI\GridColumnMenuColumnsGroup();
$columns->addGroup($first, $second);
?>

sort

The sort order which will be applied over the columns list. By default, the columns menu items are in the same order as the columns in the grid.The supported values are: "asc" (ascending order) or "desc" (descending order).

Returns

\Kendo\UI\GridColumnMenuColumns

Parameters

$value string

Example

<?php
$columns = new \Kendo\UI\GridColumnMenuColumns();
$columns->sort('value');
?>
In this article
Not finding the help you need?