Hi
I have a problem with the scrollTo function in datatable.
I would like to save the actual scrolling position, clear data, refresh the datatable and then go back to the scroll position.
I have tried it with:
var state = $$(‘datatable1’).getScrollState();
var state1 = $$(“datatable1”).getState();
$$(“datatable1”).clearAll();
$$(“datatable1”).load($$(“datatable1”).config.url);
if (state1)
{
$$(“datatable1”).setState(state1);
}
$$(“datatable1”).scrollTo(state.x, state.y);
or
webix.delay($$(‘datatable1’).scrollTo, $$(‘datatable1’), [state.x, state.y]);
But the scroll state only changes the x axis. The y axis will not scroll to the
value state.y. y axis remains 0.
I have also tried to use something like this. But it doesn’t work.
$$(“datatable1”).showItemByIndex(10) ;
It stays at position 0.
Could you give me a hint?
And a second question.
Is it possible to set a predefined serverside column text filtervalue when the page is loading? Search for “abced” in column “cpualarm_projektinfo”
{ id:“cpualarm_projektinfo”, header:[“CPU”, {content:“serverFilter”}], sort:“server”, minWidth :100, maxWidth :400, adjust:“data” },
Thank you.
Regards
Andreas