Hi,
What’s the best way to redraw a dataview ?
I’d like to change xCount dynamically and redraw the view.
setTimeout(() => {
$$(this.dataviewId).define('xCount', 3);
$$(this.dataviewId).refresh();
}, 1000);
thank you
Hi,
What’s the best way to redraw a dataview ?
I’d like to change xCount dynamically and redraw the view.
setTimeout(() => {
$$(this.dataviewId).define('xCount', 3);
$$(this.dataviewId).refresh();
}, 1000);
thank you
Hello @franck34 ,
You may use resize() after define() when you are changing the component’s width or height.
Here is an example: Code Snippet .
I didn’t think about resize()
Perfect solution, ty !