I am using asp.net mvc 3 and looking at possibly using dynatree. I am in the research page still and trying to figure out some outstanding questions before I start actually implementing it.
I been looking at the above post and how @Matt Penner renders his tree view and in my opion looks cleaner than the accepted answer.
One question I have though is how do you post the checked options to the server? When it gets rendered it seems to all be bullet tags that get converted to look like checkboxes.
So I am wondering how do I serialize that data? Right now I have a form and when the user hits submit I do a jquery serializeArrary and send it via ajax to the server where it gets binded to my View Model.
How would I do it for the choices selected in the tree view?
I am also not clear on how I could render the tree view with default checked nodes based on the example Matt Penner has.
Thanks
forgetting about model binding. On post you invoke a js function that do a recursive visit of the tree and store the infos about the cheched checkboxes in a hierarchical model. Then you serialize it in json, put into an hidden fleld, and once on the server deserialize it.
– Francesco Abbruzzese Mar 27 '12 at 16:56