This is a migrated thread and some comments may be shown as answers.

[Solved] TreeView in EditForm

3 Answers 119 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Steve
Top achievements
Rank 1
Steve asked on 11 Sep 2010, 03:46 AM
Hi,

   I try to use the treeview in a MVC Edit Form.  I have a page where I enter informations on Members and I had a combo to select department.  Unfortunately, I'm not able to represent hierarchy in a combobox, so I try to use TreeView LoadOnDemand, it works fine, but I didn't find how to send it to controller on submit to catch selected value and save it to DB?

Thank you
Steve

3 Answers, 1 is accepted

Sort by
0
Ryan
Top achievements
Rank 1
answered on 23 Feb 2011, 05:53 PM
I have a similar problem.

I need to return the selected item in a TreeView to a controller as part of a form submission. I currently have an ajax workaround but it is duct tape + popsickle sticks at best and only in place as the preffered method of returning the selection using the standard MVC form submission architecture is not immediately apparent. Any help would be much appreciated.

Thanks in advance,
Ryan
0
ermi
Top achievements
Rank 1
answered on 30 Mar 2011, 02:55 AM
Hi Ryan and Steve,

Is that a treeview in a combo box? If so, have you found a more elegant solution to the submission of selected value?

Thanks!
0
Steve
Top achievements
Rank 1
answered on 15 Apr 2011, 11:21 AM
Hi ermi,

I didn't find a solution for that, but I didn't try with latest release (2011.1.315).

Thank you
Tags
TreeView
Asked by
Steve
Top achievements
Rank 1
Answers by
Ryan
Top achievements
Rank 1
ermi
Top achievements
Rank 1
Steve
Top achievements
Rank 1
Share this question
or