filter - Extjs 4 FiltersFeature vs stateful grid -


i have grid columns filters. columns defination:

columns:[{                 text: "number",                 dataindex: 'clientreference',                 width: 200,                 filter: true,                 sortable: true             }, 

here filter feature defination

features: [{                 ftype: 'filters',                 encode: true,                 local: false             }], 

the problem is: when i'm trying save state of grid, filters not working: when adding code grid:

stateful: true, stateid: 'documentsgrid', 

i refresh page , works fine, because dont have state in cookies. when refresh page second time - state loads cookies , filters not working. if remove stateful: true , refresh page, filters working fine. suggestions? noticed, examples in extjs site filters or stateful grid, there no 1 example both.

updated: useful way making own method saving state of elements need , restore it.

i think specifying features in grid.but can specify filters in store directly.so try define filters in store , stateful in grid config options.hope may solution come out this.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -