PDA

View Full Version : Proxy in model VS Proxy in store



lfs2008
17 Aug 2012, 5:05 AM
Please explain core difference between Proxy configured in model and Proxy configured in store.

Both classes have getProxy() method

When should i prefer first or second approach?

Thanks

vietits
17 Aug 2012, 5:48 AM
You could find an answer here "The Data Package" (http://file:///D:/Prog/script/sencha.com/extjs-4.1.1/docs/index.html#!/guide/data), "Proxies" section.

lfs2008
17 Aug 2012, 7:51 AM
The problem is:
when i configure Proxy in store, attach it to grid and set store autoload:true - it works fine.
when i configure Proxy in model, attach it to grid and set store autoload:true - grid is empty.