getState

returns the current state of the view

object getState();
objectthe state object

Example

grid.getState();

Related samples

Details

The state object reflects inner UI configuration of the view.


For example, for DataTable 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"
    }
}
See also
Back to top