All Products
Demos
Pricing
Services
Blogs
Docs & Support
Search
Shopping cart
Login
Contact Us
Get A Free Trial
close mobile menu
Telerik Forums
/
Kendo UI for jQuery Forum
/
PanelBar
/
How to Reload Content of Panel bar item each time panelbar item is expanded ?
Cancel
Kendo UI
Resources
Buy
Try
Feed for this thread
2 posts, 1 answers
Parth
1 posts
Member since:
Feb 2013
Posted 22 Nov 2013
Link to this post
i am using a kendo Panel bar.
i am loading the dynemic Content for each item in panel bar from partial view.
What is need is i need to reload content of panel bar item each time item is selected .
when i first time select the item in panel bar it makes ajax request to server and fills the content in item. but when i select it second time it does not make request to server . it displays the old data which id fetched from server when i click first time on item.
is there any way i can reload content of item of panel bar each time item is expanded ? How can i do this ?
@(Html.Kendo().PanelBar()
.Name("QuickViewP")
.ExpandMode(PanelBarExpandMode.Single)
.HtmlAttributes(new { style = "width:100%" })
.Items(panelbar =>
{
panelbar.Add()
.Text("Account Summary")
.Expanded(true)
.ImageUrl(Url.Content("~/Content/Images/account-summary.png"))
.LoadContentFrom("AccountSummary", "QuickView");
panelbar.Add()
.Text("Messages & Notifications")
.ImageUrl(Url.Content("~/Content/Images/messages.png"))
.LoadContentFrom("MessagesNotifications", "QuickView");
panelbar.Add().Text("Investment Elections")
.ImageUrl(Url.Content("~/Content/Images/investment.png"))
.LoadContentFrom("InvestmentElections", "QuickView");
}
Answer
Daniel
Admin
2231 posts
Posted 25 Nov 2013
Link to this post
Hello,
In order to reload the content each time, you can use the
reload
method in the
select
event.
Regards,
Daniel
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework -
download Kendo UI
now!
Back to Top
Close