Click here to Skip to main content
13,088,711 members (54,610 online)
Rate this:
 
Please Sign up or sign in to vote.
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 29-May-12 18:18pm
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web04 | 2.8.170813.1 | Last Updated 1 Jun 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100