Click here to Skip to main content
15,881,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Helo,

I designed the kendo ui panel bar and am retreiving the items from database into the panel bar when we drag it but not in the panel bar.By using datasource am retrieving the values but i want the items in the panel bar from database so please help me...Waiting for your reply


Thanks And Regards
Prasanna Kumari
Posted
Comments
Mohibur Rashid 30-May-12 1:15am    
Will, you please properly tag your question
Prasanna Kumari 30-May-12 1:37am    
i will send my code and output screen shot

<script>
$(document).ready(function () {
var panelBar = $("#panelBar").kendoPanelBar().data("kendoPanelBar");
$("#panelBar").kendoPanelBar({
expandMode: "single",
dataSource: {
text:"Country",
contentUrl: '/Home/Get'
}




});
});
</script>

and my controller code

public JsonResult Get()
{
var val = (from i in dbContext.Counteys
where i.Id >= 1
select new { Name=i.Name });
return Json(val, JsonRequestBehavior.AllowGet);
}
am not getting values in the panle bar
madturkk 4-Jun-12 10:32am    
http://www.kendoui.com/forums/ui/panelbar/remote-json-data-to-initialize-panelbar.aspx

hope that helps.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900