Hybrid View
-
8 Apr 2010 5:20 AM #1
problem with json store in grid-> cant see data
problem with json store in grid-> cant see data
hi all,
i try to use the extjs designer. up to this time i think its an grate toll. some kind of child isius, but its ok.
i build an json store and load some data via ajax to them. i matched this store with an grid. in the design vie i see all rows in the grid (all data).
when i klick on preview or i export the project, i didnt get the data. no data displayed in
the grid
has anyone a idea?
thx
-
8 Apr 2010 9:23 AM #2
Are you loading the store by using the autoLoad configuration and/or explicly loading the store like:
Code:Ext.StoreMgr.lookup('myStore').load();Aaron Conran
@aconran
Sencha Architect Development Team
-
8 Apr 2010 9:53 AM #3
Hi c.kienzl@o-range.at,
I had the same problem but the solution was posted in the "bug" area of the forum.
Basically, once the project is exported it created a folder called "mockup". I had to move the file containing my data (txt or php or whatever you are using) inside "mockup". I also had to make sure my json store was autoloading. Then it should work.
-
9 Apr 2010 12:30 AM #4
ok, i found the problem
i copied my ext js script in the filedir of my php file. now it works!
other question how to handle an editable grid with the return values to php?
-
27 Apr 2010 10:01 AM #5
okay, hmmm. This is strange. I have the same problem. However I linked the store to a url such as "http://localhost/mydata/mydata.html". The same problem applies here: I get to view ALL the date in the design mode, but when I preview it or export it - there is no data.
Why is that? I have tried to save the data file right next to the project file, but no success. What am I doing wrong? Oh and I ALSO have the autoload of the store on.
-
27 Apr 2010 8:21 PM #6
@mihaip007 Can you share your XDS file? If not, what's the url property you have set on your Store? I assume you have a local webserver running. What is the URL path to the app? is it the root (http://localhost/) or in a sub dir (http://localhost/myapp/)?
This sounds like a path issue.


Reply With Quote