Sets the options of the Treelist. Use this method if you want to enable/disable a particular feature/option or to load the complete state obtained previously with the getOptions method.
setOptions is called, the Treelist widget will be destroyed and recreated. If the widget is bound to remote data, a new read request will be made.
There are a few important things to keep in mind when using
setOptions()in a Treelist event handler is not possible.
setOptions()in a function, which is related to the Treelist's databinding mechanism may cause an endless loop.