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

Save the treeview in postback

2 Answers 104 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Vitantonio
Top achievements
Rank 1
Vitantonio asked on 20 Apr 2012, 03:25 PM
Hi,
How I can save e reload the treeview when i do a postback ??
Thanks

2 Answers, 1 is accepted

Sort by
0
Vitantonio
Top achievements
Rank 1
answered on 27 Apr 2012, 02:35 PM
Hi, 
I save the outerHTML in BeginRequestHandler and EndRequestHandler.
This I the code

function BeginRequestHandler(sender, args) {
    treeOfficesState = $("#treeOffices")[0].outerHTML;
}

function EndRequestHandler(sender, args) {
$("#treeOffices")[0].outerHTML = treeOfficesState;
        treeOffices = $("#treeOffices").kendoTreeView({
        dragAndDrop: false,
        select: onSelectTreeOffice,
        expand: onExpandTreeOffice
        }).data("kendoTreeView");
}

This function in IE9, Chrome, FF, Safani, no in IE7 not function expand and select.

Help please.
Thanks



0
Vitantonio
Top achievements
Rank 1
answered on 04 May 2012, 09:39 AM
Help!!
Tags
TreeView
Asked by
Vitantonio
Top achievements
Rank 1
Answers by
Vitantonio
Top achievements
Rank 1
Share this question
or