Skip to content

getState

returns the current state of the view

function getState(): object

object the state object

grid.getState();

also check the next samples:

The state object reflects inner UI configuration of the view.

For example, for DataGrid shown below:

the state object will look as in:

{
filter:{
title:"Go"
},
ids: ["rank","title","year","votes"],
select:[{
column:"title",
id:3,
row:3
}],
size:[50,200,80,100],
sort:{
dir: "desc",
id: "title"
}
}