creates the Grid view in the scheduler
config | object | the configuration object of the Grid view |
Available only in PRO Edition
scheduler.createGridView({
name:"grid",
fields:[
{id:"id", label:'Book Title', width:'*', align:'right', sort:'str'},
{id:"date", label:'Author', width:100},
{id:"text", label:'Votes', width:200, align:'left', sort:'int'}
],
from:new Date(2000, 00, 01),
to:new Date(2013, 00, 01)
});
This functionality is available in the PRO edition only.
The method requires the grid_view plugin to be activated.
The configuration object of the Grid view can have the following properties:
name | (string) the view's id |
fields | (array of objects) configures columns of the grid. Each object in the array specifies a single column and can take these properties:
|
select | (boolean)enables/disables selection in the grid (by default, selection is enabled) |
rowHeight | (number) the height of rows in the grid |
paging | (boolean) enables/disables navigation with buttons in the grid (details) |
unit | (minute, hour, day, week, month, year) the scrolling time unit. By default, 'month' |
step | (number) the number of units scrolled at a time. By default, 1. |
from | (Date) sets the left border of the allowable date range. Used to limit date range in the scheduler |
to | (Date) sets the right border of the allowable date range. Used to limit date range in the scheduler |