PDA

View Full Version : nested list using json store connected to asp.net asmx file



accubook
12 Sep 2011, 5:43 AM
Hi,

Note: the title should be "TreeStore"

I have followed the video "http://www.sencha.com/learn/intro-to-the-nested-list-component/" to create a nested list, however there are some issues when connecting to asp.net asmx

Firstly, asp.net preferres to use POST instead of GET - I got that working, it also wants the request sent in json format to send data back in json format - i managed to change that.. I also turned off the querystring parameters incase that was causing issues but the problem seems to be...

The TreeStore posts the form values "node=root" which is not in json format so i need to remove them, if I change the store to jsonStore the json response is received but i dont know how (or if its possible ) to use JsonStore for the nested list instead of TreeStore.

The asp.net error caused by the form values is : Invalid JSON primitive: node

Does anyone know how to remove the form values "node=root" from the TreeStore proxy request?

accubook
13 Sep 2011, 8:22 AM
I found a solution after 4 days...

http://www.sencha.com/forum/showthread.php?124569-AjaxProxy-with-jsonData-option

o (http://www.sencha.com/forum/showthread.php?124569-AjaxProxy-with-jsonData-option)verloading the ajaxProxy I can remove the params

... now my list shows 1000+ empty enteries but im guessing that is some other issue