Oct 03, 2014, 7:18 AM
GridFilter StateProvider does not store filter settings
Hi,
does anyone have issue on storing filter settings using StateProvider?
I have a grid wich stores settings (columns position, sorting, hidden, width) via Cookies Provider. This grid has GridFilters. The state is properly saved and restored except filters! It seems that filters are properly stored into cookies, as shown below, but they are not applyed on reload
o%3Acolumns%3Da%253Ao%25253Aid%25253Ds%2525253ACCo mmand%255Eo%25253Aid%25253Ds%2525253ACId%25255Ewid th%25253Dn%2525253A119%255Eo%25253Aid%25253Ds%2525 253ACDummyCode%25255Ewidth%25253Dn%2525253A306%255 Eo%25253Aid%25253Ds%2525253AMainColumnModel%25255E width%25253Dn%2525253A175%5EstoreState%3Do%253Asor ters%253Da%25253Ao%2525253Aroot%2525253Ds%25252525 3Adata%2525255Eproperty%2525253Ds%252525253ADummyN ame%2525255Edirection%2525253Ds%252525253ADESC%5Ef ilters%3Do%253ADummyCode%253Ds%25253Ayyy
Notice the last part that store filter: 5Efilters%3Do%253ADummyCode%253Ds%25253Ayyy
It really looks like this issue: http://www.sencha.com/forum/showthre...res-it-s-state
I am going to apply the suggestion in the upper link overriding some Ext.js methods...
Does anyone experience the same issue and have a good workaround for that?
does anyone have issue on storing filter settings using StateProvider?
I have a grid wich stores settings (columns position, sorting, hidden, width) via Cookies Provider. This grid has GridFilters. The state is properly saved and restored except filters! It seems that filters are properly stored into cookies, as shown below, but they are not applyed on reload
o%3Acolumns%3Da%253Ao%25253Aid%25253Ds%2525253ACCo mmand%255Eo%25253Aid%25253Ds%2525253ACId%25255Ewid th%25253Dn%2525253A119%255Eo%25253Aid%25253Ds%2525 253ACDummyCode%25255Ewidth%25253Dn%2525253A306%255 Eo%25253Aid%25253Ds%2525253AMainColumnModel%25255E width%25253Dn%2525253A175%5EstoreState%3Do%253Asor ters%253Da%25253Ao%2525253Aroot%2525253Ds%25252525 3Adata%2525255Eproperty%2525253Ds%252525253ADummyN ame%2525255Edirection%2525253Ds%252525253ADESC%5Ef ilters%3Do%253ADummyCode%253Ds%25253Ayyy
Notice the last part that store filter: 5Efilters%3Do%253ADummyCode%253Ds%25253Ayyy
It really looks like this issue: http://www.sencha.com/forum/showthre...res-it-s-state
I am going to apply the suggestion in the upper link overriding some Ext.js methods...
Does anyone experience the same issue and have a good workaround for that?
.Items(
X.GridPanel()
.Border(false)
.ID("MainGridPanel")
.Region(Region.Center)
.Layout(LayoutType.Fit)
// Salvataggio Layout griglia: Width, Hide, Position, Sort
.Stateful(true)
.StateID("EasyWeb.DummyList.MainGridPanel")
.StateEvents(new string[] {"columnhide", "columnresize", "columnmove", "sortchange", "filterupdate"} ) // Parametrizzare....
...
...
.Features(
X.GridFilters()
//.StateId("GridFilters")
.Filters(
X.NumericFilter().DataIndex("Id"),
X.StringFilter().DataIndex("DummyCode"),
X.StringFilter().DataIndex("DummyName")
)