LayoutMode
Description
A LayoutMode is an enum that specifies the mode to use to display all the items of the data source in the DataGrid.
The default DataGridOptions.layoutMode is Infinite, which means that all items from the data source are displayed on a single page.
Possible Values
|
Name |
Type |
Value |
Description 5 |
|---|---|---|---|
|
Infinite |
string |
"infinite" |
All items are displayed on a single page. |
|
Paging |
string |
"paging" |
Items are displayed on multiple pages, the length of each page being determined through the |
Example
In this example, the DataGridOptions.layoutMode is set to Paging, meaning items will be displayed on multiple pages.
const options = {
layoutMode: Xceed.LayoutMode.Paging
}
};
const datagrid = new Xceed.DataGrid("containerId", options);
Need help? Contact us!