PDA

View Full Version : tree and grid combination



anilsonawane
14 May 2008, 12:01 AM
Hello,
I am developing windows explorar looks like screen ..using tree and grid.

I have developed page showing tree and grid , on click of nodes of tree i want get data from server and want to show it in grid.
every time i click on nodes grid should be updated with server data.

i am using ajax for getting data from server and i have tested it i do get data from server but dont know how to assigned it to store.
can any one please tell me how to do it....

take care

mdpai
14 May 2008, 12:09 AM
you should encode them to json first, just look at the examples in the tutorial/sample page.

good luck with your project

anilsonawane
14 May 2008, 12:24 AM
hello , i have formatted data for store like [['test1'],['test2'],['test3']] and returning this as string from server and when i put alert it shows this data but problem is how to assigne this to store.loaddata() ?

plz reply
take care

angbob
14 May 2008, 12:29 AM
first you have to create a jsonstore.

and then load the data into it. using store.loadData(datafromserver)

mdpai
14 May 2008, 12:31 AM
try to take one of the example and look how they did to achieve that and eventually change the to suit your needs. Thats the best way to learn (I think)

anilsonawane
14 May 2008, 1:49 AM
thanks for info but can any one tell me how my url which is jsp will return data.?

rudytheng
14 May 2008, 2:06 AM
googling... what json is ....... and how jsp do json encode