addItem performance


#1

Greetings

I am using a dhtmlx form to dynamically add a lot of gui elements (combos / inputs / etc). This is performed while iterating on some data-set where each i-th member of the dataset is basically a different type of control that has to be added (with unique id’s, different data etc etc etc)

From what I see in my form, each addItem adds a significant delay before the form is ready for the user. I am suspecting that each addItem “refreshes” the form.

If this is the case, is it possible to “fill-up” the form with successive addItem calls and throw in a form “refresh” at the end? I tried this with the form hidden but didn’t have any difference in performance

cheers!


#2

Build a JSON with all the form elements separately and then append the whole form to the container?