set prerender=true as default globally

Hi,

I’m wondering if it’s possible to set prerender=true globally as default, then disable it in views I want dynamic render using prereder=false.

I’m asking because for my applications most of the tables are fairly small and prerender will not create noticeable performance issue but does give the flexibility of browser search, which many users would like to use.

Thanks,
Jianxin

Hi,

The prerender property is a feature of the following Webix components : datatable, treetable, dataview.

You can create custom components on the base of either of them and reuse them as many times as you need.

//creating a custom view
webix.protoUI({
     name:"mydatatable",
     defaults:{
         prerender:true
      }
 }, webix.ui.datatable);

//using it
webix.ui({
      view:"mydatatable", 
      ...
});

http://webix.com/snippet/e8fcd3d8

Great. Thanks for the quick reply!

Jianxin