Click here to Skip to main content
11,643,493 members (76,422 online)
Rate this: bad
good
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 at 30-May-12 1:15am
   
Will, you please properly tag your question
Prasanna Kumari at 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 at 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
0 OriginalGriff 570
1 jyo.net 484
2 DamithSL 318
3 Afzaal Ahmad Zeeshan 253
4 CPallini 222
0 OriginalGriff 795
1 DamithSL 611
2 Mika Wendelius 494
3 jyo.net 484
4 Afzaal Ahmad Zeeshan 404


Advertise | Privacy | Mobile
Web01 | 2.8.150731.1 | Last Updated 1 Jun 2012
Copyright © CodeProject, 1999-2015
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