Kendo docs is a nice looking site ... http://docs.kendoui.com/getting-started/changes-and-backward-compatibility
I thought now if I can just make my Kendo Web UI site work like this I'll get a pay rise for sure!
Seems though that each treenode selection triggers a postback and so the entire page is returned along with lots of ugly viewstate.
So now I'm thinking .... how can I use the Kendo UI treeview like this as a page navigator and have it's state persist across postbacks? Do I need to have my "content" page in a frame?
I thought now if I can just make my Kendo Web UI site work like this I'll get a pay rise for sure!
Seems though that each treenode selection triggers a postback and so the entire page is returned along with lots of ugly viewstate.
So now I'm thinking .... how can I use the Kendo UI treeview like this as a page navigator and have it's state persist across postbacks? Do I need to have my "content" page in a frame?
6 Answers, 1 is accepted
0
Accepted
Hello,
Daniel
the Telerik team
You could use a cookie to save the selected nodes and then set the nodes' expanded option to restore it through the configuration. Here is a small jsBin sample.
Regards,Daniel
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Darryl
Top achievements
Rank 1
answered on 06 Dec 2012, 10:54 PM
That's a neat trick.
Thanks.
Thanks.
0
Stephan
Top achievements
Rank 1
answered on 26 Feb 2013, 12:51 PM
Hello,
after the page containing the tree view is refreshed, the state isn’t remembered so the tree view is collapsed totally. We have the requirement that the state is unchanged on a refresh or navigation operation on the browser.
So our question: Is it possible to store the state in any way (cookies etc.) to restore it on a page load?
Thanks in advance.
0
Hello Stephan,
Daniel
the Telerik team
I posted a sample project using Kendo MVC in the other forum thread on the same topic. If you need a solution with Kendo UI Web, I can suggest to check the jsBin example from my previous reply in this thread.
Regards,Daniel
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Nathan
Top achievements
Rank 1
answered on 24 Mar 2014, 07:46 PM
I was looking at that jsBin sample. Is there something similar for someone using mvc 5 / razor?
thanks
thanks
0
Hello,
A sample using MVC is available in the forum thread linked in my previous post.
Regards,
Daniel
Telerik
A sample using MVC is available in the forum thread linked in my previous post.
Regards,
Daniel
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!