-
12 Feb 2013 8:19 AM #1
store remote filter callback
store remote filter callback
Hello,
I've some stores with remoteFilter properties set to true. When I call the method filter() the stores add filters and load the remotely data. How can I add a callback function to the filter() method?
-
13 Feb 2013 8:52 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,641
- Vote Rating
- 434
You can add a load listener
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
14 Feb 2013 12:36 AM #3
Ok but the load event dosen't return the operation object. Where I can find the error message?
-
15 Feb 2013 2:08 AM #4
Hello bozzoz,
If your error message is included in the response object, you can rescue the returned object through the property "rawData" of class Ext.data.reader.Json. For example:
Code:,listeners: { load: function (store, records, successfull) { var json = store.proxy.reader.rawData; console.log(json); } }I am sorry my english, I am learning yet
Portuguese blog: http://wessdevel.blogspot.com.br/
Twitter: @wlegolas
-
15 Feb 2013 2:14 AM #5
-
15 Feb 2013 2:51 AM #6I am sorry my english, I am learning yet
Portuguese blog: http://wessdevel.blogspot.com.br/
Twitter: @wlegolas


Reply With Quote