http://docs.webix.com/api__link__ui.dataview_render.html
How do I render a item in dataview by changing the data?. The dataobject should be the full items data obj or it can contain only the changed fields?. I mean if the existing data obj has {x, y z}, do I need to specify x y z in the render() function?. I got the blank screen when I try to update only the changed fields.
It would be better to use different approach to change item data:
- change properties of data item (http://docs.webix.com/api__link__ui.dataview_getitem.html)
- call refresh(id) method for this item (http://docs.webix.com/api__link__ui.dataview_refresh.html)
var item = dataView.getItem("someId");
item.x = "abc";
dataView.refresh("someId");
Just an example if someone wants to know the difference between refresh and render.
http://webix.com/snippet/e9eb1da0
Yes, if you are using only “render” method, item data are not changed. Therefore, each redraw (for example selection) will reset item html.
Therefore, it is more correct to change item data and then call “refresh” to redraw the item.