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

[Solved] Treeview and ContentPages AjaxRequest

1 Answer 54 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
orim
Top achievements
Rank 1
orim asked on 27 Aug 2012, 09:04 AM
Hi,
can someone give me an example. I try to have a Mvc splitter with two panes.
Left Pane has a MVC Telerik Treeview bind to an MVCSiteMapProvider from Codeplax.
The right pane should open the content pages asynchron (AJAX-not refreshing the complete page with the pane treeview) when i click a treeview node. Can i use Updatepanel in MVC ?

Thanks

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 30 Aug 2012, 05:45 AM
Hello Miroslav,

Basically you need to combine the two approaches covered in these two online demos. For the left pane you will need to add the pane like shown here (check the Grid pane):
http://demos.telerik.com/aspnet-mvc/splitter/nestingcomponents 
And for the right pane you will need to add it through the LoadContentFrom method like shown here (again the Grid):
http://demos.telerik.com/aspnet-mvc/splitter/ajaxloading 

Regarding the Updatepanel you do not need to use it (not sure if it is possible at all).
You need to use the Client API and events of the two widgets. For the TreeView you will need to use the OnSelect event - check this part of the documentation for implementation. And to refresh the right pane you can use t he ajaxRequest method of the Splitter to refresh the pane. Again the documentation shows even how to pass parameter to the action method when refreshing.
http://www.telerik.com/help/aspnet-mvc/telerik-ui-components-splitter-client-api-and-events.html#ajaxRequest 


Kind Regards,
Petur Subev
the Telerik team
Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.
Tags
Splitter
Asked by
orim
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or