I made a treegrid (in a dhtmlxlayout) and i try to reload data with httprequest (responsetext in innHTML).
The problem is that i can’t use the xml way, maybe what i’m trying is not possible… I hope you can help me.
Here is my code :
[code]
[...]
[/code]
My httprequest works, it returns in alert the good script with all changes but on the sreen it’s the same, no reload. The only change i see is that i loose my rows images.
Why you are returning html with embeded json instead of pure json data for treegrid?
Please be sure that treegrid var was really set to new value, and you are providing new data to the parse command ( init and reload command are correct on its own )
I don’t know why, but I thought it was not possible to init data in treegrid with mygrid.load(url,“json”), so i haven’t try it.
After your answers, I make it work with this way…