How can i maintain persist state when i redirect to the corresponding pages
<!DOCTYPE html>
<
html
>
<
head
>
<
title
></
title
>
<
link
rel
=
"stylesheet"
href
=
"styles/kendo.common.min.css"
/>
<
link
rel
=
"stylesheet"
href
=
"styles/kendo.default.min.css"
/>
<
script
src
=
"js/jquery.min.js"
></
script
>
<
script
src
=
"js/kendo.all.min.js"
></
script
>
</
head
>
<
body
>
<
div
id
=
"example"
>
<
div
class
=
"demo-section k-content"
>
<
ul
id
=
"panelbar"
>
<
li
><
a
href
=
"page1.aspx"
></
a
>Page1</
li
>
<
li
><
a
href
=
"page2.aspx"
></
a
>Page2</
li
>
<
li
><
a
href
=
"page3.aspx"
></
a
>Page3</
li
>
<
li
>
Page Sub Level2
<
ul
>
<
li
><
a
href
=
"page4.aspx"
></
a
>Page4</
li
>
<
li
><
a
href
=
"page5.aspx"
></
a
>Page5</
li
>
<
li
><
a
href
=
"page6.aspx"
></
a
>Page6</
li
>
<
li
>
<
ul
>
<
li
><
a
href
=
"page7.aspx"
></
a
>Page7</
li
>
<
li
><
a
href
=
"page8.aspx"
></
a
>Page8</
li
>
<
li
><
a
href
=
"page9.aspx"
></
a
>Page9</
li
>
</
ul
>
</
li
>
</
ul
>
</
li
>
<
li
><
a
href
=
"page10.aspx"
></
a
>Page10</
li
>
<
li
>
Page Sub Level22
<
ul
>
<
li
><
a
href
=
"Page11.aspx"
></
a
>Page11</
li
>
<
li
><
a
href
=
"Page12.aspx"
></
a
>Page12</
li
>
<
li
><
a
href
=
"Page13.aspx"
></
a
>Page13</
li
>
</
ul
>
</
li
>
<
li
><
a
href
=
"Page14.aspx"
></
a
>Page14</
li
>
</
ul
>
</
div
>
<
div
class
=
"box"
>
<
h4
>Console log</
h4
>
<
div
class
=
"console"
></
div
>
</
div
>
</
div
>
<
script
>
function onSelect(e) {
kendoConsole.log("Select: " + $(e.item).find("> .k-link").text());
}
function onExpand(e) {
kendoConsole.log("Expand: " + $(e.item).find("> .k-link").text());
}
function onCollapse(e) {
kendoConsole.log("Collapse: " + $(e.item).find("> .k-link").text());
}
function onActivate(e) {
kendoConsole.log("Activate: " + $(e.item).find("> .k-link").text());
}
function onContentLoad(e) {
kendoConsole.log("Content loaded in <
b
>" + $(e.item).find("> .k-link").text() +
"</
b
> and starts with <
b
>" + $(e.contentElement).text().substr(0, 20) + "...</
b
>");
}
function onError(e) {
kendoConsole.error("Loading failed with " + e.xhr.statusText + " " + e.xhr.status);
}
$("#panelbar").kendoPanelBar({
expandMode: "single",
select: onSelect,
expand: onExpand,
collapse: onCollapse,
activate: onActivate,
contentLoad: onContentLoad,
error: onError,
contentUrls: [, , , "../content/web/panelbar/ajax/ajaxContent1.html", "error.html"]
});
</
script
>
</
body
>
</
html
>