pivot table

after applying (in popup) formatting is lost. How do I prevent this?
Many thanks
Kappa

Hi,

In a new configuration (after pressing ‘apply’ in popup) old settings will be lost.
To re-apply the format, you need to set it in onBeforeRender event:

  view:"pivot",
  on:{
    onBeforeRender: function(config){
      var columns = config.header;
      for(var i=1; i < columns.length;i++){
        columns[i].format = webix.i18n.numberFormat;
      }
    }
  }

great, it works.
Thank you very much