8 Apr 2010 5:20 AM #1
problem with json store in grid-> cant see data
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
has anyone a idea?
8 Apr 2010 9:23 AM #2
Are you loading the store by using the autoLoad configuration and/or explicly loading the store like:
8 Apr 2010 9:53 AM #3
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
28 Apr 2010 9:05 PM #7
Thanks for the quick reply. I have attached the xds file. I have created a json file with some data. It works in designer mode, but not in preview mode. That is the only issue.
I have noticed that it was complaining that the json file could not be loaded and it gave me the url it was using, so I simply placed the file in location where I can access it using the url http://localhost/dev/survey.html
Can you see what I am doing wrong?
28 Apr 2010 11:05 PM #8
Strange, I have the same problem. I've created the store with the designer and my store loads (I see my JSON data in Firebug), but grid shows only empty lines (" " values inside cells).
Edit: I've even checked my store, data is there, just not shown in my grid.
Last edited by wickedsheep; 28 Apr 2010 at 11:35 PM. Reason: Additional information
29 Apr 2010 1:44 AM #9
http://localhost/) or do you export to a sub directory?
29 Apr 2010 1:53 AM #10
How do I know where it exports? Because I only click on the "preview" button. As about the "http://localhost/" part - yes I tried to remove it. Again it works in the designer, but not in the preview mode... very weird indeed hehehe.