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

after init k-options I can't change excel: { fileName: popName

1 Answer 115 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Юрий
Top achievements
Rank 1
Юрий asked on 15 Feb 2016, 11:37 AM
I have kendo grid and after initialization of him i tried to change fileName, but k-options keeps old value:

vm.gridOptionsUpdate = {
  excel: {
    allPages: true,
    fileName: providerName
 
  },
...........
// I'd like to invoke function
finction changeNmae(){
 
  vm.gridOptionsUpdate.excel.fileName = providerName;
// vm.gridOptionsUpdate.excel.fileName = "new name";
}
<div kendo-grid k-options="vm.gridOptionsUpdate" k-data-source="vm.dataSourceUpdate"></div>

 

 but when i try to save file 'k-grid-excel' name is still old

help pls 

 

 

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 17 Feb 2016, 09:27 AM
Hi Jury,

You need to use k-rebind if you want to change the options dynamically

http://docs.telerik.com/kendo-ui/AngularJS/introduction#widget-update-upon-option-changes

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Юрий
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or