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

enable cache for ajax request in PanelBar

1 Answer 66 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Pierre-Emmanuel
Top achievements
Rank 1
Pierre-Emmanuel asked on 19 Jul 2016, 09:05 AM

Dear all,

I use PanelBar through angular integration. I link my kendo bar with my controller thanks to k-data-source.

<ul id="kendoPanelBar" kendo-panel-bar k-data-source="vm.accordion" k-options="vm.accordion.options">

I use contentURL to load each panelBar. All work fine !

 

My problem is the cache option which is disable for ajax request : Loading of different contentURL is performed with the addition of a timestamp for the request :

e.g. : selectRecherche?_=XXXXXXXXX

 

I would like a classic loading of the content without that timestamp addition (for use of $templateCache). How can I disable that ! I didn't find nothing in k-options! (transport ?)

 

Thanks a lot

 

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 21 Jul 2016, 08:01 AM

Hello Pierre-Emmanuel,

The Kendo UI PanelBar does not work with the kendo.data.DataSource. It makes internally an ajax request with cache:false option set. Since the ajax request is initiated internally I am afraid it can not be modified and there is no workaround for such case. 

Regards,
Boyan Dimitrov
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
PanelBar
Asked by
Pierre-Emmanuel
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or