7.1.8 grid setColumns bug


#1

emmm, upgraded to 7.1.8 today, a grid attached to a window will not display now and it runs well before 7.1.8.


#2

OK, this issue is raised because my code is written as:

getCustomerFrom().then(from => {
  this.orderGrid.setColumns([
	...
]};

getCustomerFrom() will get datas from the server. It will be gone when I put the setColumns() out of getCustomerFrom()

It’s nothing to do with dhx window, but the setColumns(). Made a snippet
https://snippet.dhtmlx.com/hk4s6tav


#3

Hello adyanced

Thank you for your report and the example. The problem is confirmed. We’ll try to fix in one of the future udpates.


#4

Hello.

We have fixed your reported problem in the latest dhx.Suite update (7.1.9).
Now it should work correctly.,
Note, that you should define any columns structure for your grid initially:
https://snippet.dhtmlx.com/dmda8f7b


#5

First thank you very much. After updated to 7.1.9 I find some other problems around setColumns function and grid initializing. I will do more tries and make a snippet.


#6

Hi, sorry for a long delay cause I have to first finish my project. There appears a new issue after updated to V7.1.9 also V7.1.10. The error message is as show
catch
And original entry function is "setColumns ". I don’t know which araised it. Try to trace :

    function redrawSync(newParent, newIdx, withDOM) {
...
{ patch(vnew, vold); }

here the second parameter of function “patch” is void. But:

function patch(vnode, donor) {
fireHook(donor.hooks, "willRecycle", donor, vnode);

var el = vnode.el = donor.el;

var obody = donor.body;
var nbody = vnode.body;

el._node = vnode;

In function “patch”, second parameter “donor” can’t be void.


#7

Could you please, provide any kind of snippet, where the problem can be reconstructed.


#9

OK, try to write a snippet based on my code. https://snippet.dhtmlx.com/vix0w2qz Switch from a tabbar to another and switch back and the original one shows a blank page then both are empty. If V7.0.3 is used (actually any release earlier than V7.1.8 works well), that is OK. And if I do not use setcolumn() , it also did a good job


#10

Hello sematik, could you please check my snippet? My project is written in this way and I have to stop at V7.1.6. I have to use setColumns() function, it is a big problem for me.


#11

My apologies for the delay.
The problem is confirmed. We’ll try to fix it in one of the future updates.


#12

We have fixed your reported problem in the latest dhx.Suite update (7.2.2.).
You can check it in your original snippet:
https://snippet.dhtmlx.com/vix0w2qz
Please, try to download the latest dhx.Suite to get the fix of this issue.
Thank you for your report and your patience.