arnoldvillasanta
14 Apr 2014, 1:31 AM
Hi,
In Sencha Architect 3:
1. I created a controller to monitor for CHANGE event of a text field under a Search(Filter) Form.
2. The Grid Panel where this search points to has a total of 98 pages, with 20 rows per page.
3. The FilterFunction I defined in the CONTROL takes the Store of the GridPanel and update the Property and Value of the the Store's Filter.
3. The filter works fine if the VALUE inputed in the text field is in page 1 of the GridPanel.
4. If the VALUE inputed is in page 2 or in any other page, the GridPanel does not display the row.
5. Also, let say that after step 3, (where the GridPanel shows the filtered row), and I entered another VALUE in the Search(Filter) Form, which is previously shown in page 1 before filtering, then the GridPanel fails to display the result row.
I wonder if the FILTER can actually search for the whole STORE and not on the displayed subset of the data (page 1 of dataPanel).
I tried to mix-and-match the following:
1. Store: autoload
2. Store: buffered
3. Store: remoteFilter
4. Store: FilterOnLoad
5. Store: statefulFilters
I also called(not call) the store.load() and clearFilter() inside the Control function I created in combination of the above but I'm getting nowhere.
BTW, I also noticed that the FILTER SAMPLE included in ExtJS and other sites only have a 1 page DataPanel... I would appreciate if someone can give a link to a multi-page GridPanel sample.
In Sencha Architect 3:
1. I created a controller to monitor for CHANGE event of a text field under a Search(Filter) Form.
2. The Grid Panel where this search points to has a total of 98 pages, with 20 rows per page.
3. The FilterFunction I defined in the CONTROL takes the Store of the GridPanel and update the Property and Value of the the Store's Filter.
3. The filter works fine if the VALUE inputed in the text field is in page 1 of the GridPanel.
4. If the VALUE inputed is in page 2 or in any other page, the GridPanel does not display the row.
5. Also, let say that after step 3, (where the GridPanel shows the filtered row), and I entered another VALUE in the Search(Filter) Form, which is previously shown in page 1 before filtering, then the GridPanel fails to display the result row.
I wonder if the FILTER can actually search for the whole STORE and not on the displayed subset of the data (page 1 of dataPanel).
I tried to mix-and-match the following:
1. Store: autoload
2. Store: buffered
3. Store: remoteFilter
4. Store: FilterOnLoad
5. Store: statefulFilters
I also called(not call) the store.load() and clearFilter() inside the Control function I created in combination of the above but I'm getting nowhere.
BTW, I also noticed that the FILTER SAMPLE included in ExtJS and other sites only have a 1 page DataPanel... I would appreciate if someone can give a link to a multi-page GridPanel sample.