This is a migrated thread and some comments may be shown as answers.

How to Reload Content of Panel bar item each time panelbar item is expanded ?

1 Answer 193 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Parth
Top achievements
Rank 1
Parth asked on 22 Nov 2013, 07:58 AM
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");

}

1 Answer, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 25 Nov 2013, 04:04 PM
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!
Tags
PanelBar
Asked by
Parth
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or