I would like to create tree in my mvc view using Fuelux jquery plugin. To use this plugin I have to send data to plugin with next code:
$('#MyTree').tree({ dataSource: dataSource })
I don't have any idea how to send my model object in view as parameter to plugin. What structure data must have?
You need to conver you model to Json and use the converted object as a datasource:
Now you need to populate ViewBag.JsonModel in the action:
Here is tree plugin example: