I am trying to load the following dynamically to recreate a panelbar's complete contents.
Originally, the panel bar has no contents, and depending on a user's actions, I do an ajax call to get the new panelbar contents that returns the json structure below.
var pb = $("#myPanelBar").data("kendoPanelBar");
var x =
[
{
text: "Colors",
expanded: true,
items: [
{ text: "Red" },
{ text: "Green" },
{ text: "Blue" },
{ text: "Orange" },
{ text: "+ Add New" }
]
},
{
text: "Animals",
expanded: true,
items: [
{ text: "Lion" },
{ text: "Eagle" },
{ text: "Lizzard" },
{ text: "+ Add New"}
]
},
{
text: "Planets",
expanded: true,
items: [
{ text: "Pluto" },
{ text: "Mars" },
{ text: "Saturn" },
{ text: "+ Add New" }
]
}
]
Originally, the panel bar has no contents, and depending on a user's actions, I do an ajax call to get the new panelbar contents that returns the json structure below.
var pb = $("#myPanelBar").data("kendoPanelBar");
var x =
[
{
text: "Colors",
expanded: true,
items: [
{ text: "Red" },
{ text: "Green" },
{ text: "Blue" },
{ text: "Orange" },
{ text: "+ Add New" }
]
},
{
text: "Animals",
expanded: true,
items: [
{ text: "Lion" },
{ text: "Eagle" },
{ text: "Lizzard" },
{ text: "+ Add New"}
]
},
{
text: "Planets",
expanded: true,
items: [
{ text: "Pluto" },
{ text: "Mars" },
{ text: "Saturn" },
{ text: "+ Add New" }
]
}
]