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");
}
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");
}