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

2 posts, 0 answers
  1. Юрий
    Юрий avatar
    3 posts
    Member since:
    Jan 2016

    Posted 15 Feb 2016 Link to this post

    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 

     

     

  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2596 posts

    Posted 17 Feb 2016 Link to this post

    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!
     
Back to Top