Our clients are having problems with the ram leak of the page,
we have studied it and the “jqxGrid” table launch lots of “initWidget” events while scrolling,
Is there any solution for that? I mean to not activate the “initWidget” while you are scrolling, only when you filter or other table changes.
Unfortunately, there is no such option.
initwidget is a callback function and does not create memory leak. Memory leak may happen if your logic inside initwidget does something which occupies memory and does not destroy it. For example: bind to event. As initwidget is called each time the widget is in the view, you will end up with many event listeners while you need only 1. If possible, you can try moving your initwidget callback functionality into the createwidget callback that is called only once.