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

Send TeeView to Controller

1 Answer 101 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Mark Wells
Top achievements
Rank 1
Mark Wells asked on 20 Feb 2013, 05:23 AM
I have a treeview that I bind on the server using MVC. The user can add nodes to the tree through the interface. I would like to have a button that sends the resulting tree back to the controller after the user has completed the changes. How do I do this?

Please respond quickly as I have a very short timeline and I have been pushing Kendo on my clients. I don't want to let my clients down.

Thanks,

Mark

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 21 Feb 2013, 02:12 PM
Hello Mark,

The TreeView Widget is not a form or input element which is not intended and could not be simply submitted to a controller.
What you can do is to submit the selected checkboxes. Or create template which has a hidden input inside which value is some field from the model. This way when the TreeView is positioned inside a form element all the hidden inputs will be sent to the server.

Kind Regards,
Petur Subev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
TreeView
Asked by
Mark Wells
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or