PDA

View Full Version : url in proxy of a treestore



aaron7744
21 Mar 2012, 1:36 AM
i have a grid of items and i want to show a treegrid when a item is double clicked. So the url of the treestore should be: http://.../treegrid/item_id. I want to define the Proxy of treestore in a double_click_controller which responds the double_click_event of items. But it seems that the url must be defined when the treestore or treegrid is defined. can someone help?

i would really appreciate any tip, thanks.
aaron

mitchellsimoens
21 Mar 2012, 9:07 AM
It is best to have the url defined up front and then handle the request server side.

aaron7744
23 Mar 2012, 12:06 AM
thanks, mitchellsimoens. but can you tell me more details. i can set the url with "http://../treeStore/withoutID", that's no problem. but i can not add records into the treestore (in Controller with ajax.request), because treestroe has not add() mothod. if i try to rewrite the url , i will have "url is undefined" :s

aaron7744
26 Mar 2012, 12:37 AM
additional info : i use the version of 4.0.7
should i update to 4.1, or it dosen't help?

aaron7744
26 Mar 2012, 5:12 AM
reason is found. it is a bug in 4.0.7 and just update to 4.1.:)