I have an issue reproducible in HT 3.0 ahead where in case the first row in the data has less attributes that the table columns, the column order is not applied correctly and in some cases there is a duplication of columns.
If instead I load the data after the table was created, there is not duplicated column, but the order is not applied:
Even in the second case, manualColumnMove is not applied. Column headers are not matching your specified order. Looks like there is some issue with manualColumnMove?
it looks like the width for the columns is added based on the physical index instead of visible one, plus, sometimes it duplicates the data https://jsfiddle.net/handsoncode/ksfc38t6/
I will look into this a bit closer and share my thought as soon as I discover the pattern
Yes, as of version 3.0, that has been always the assumption I had on column resize plugin, the initial size is based on column index and not in visible columns;
Also, this might help, but @tkthompson made a local patch to the “countSourceCols” function to fix the column resize issue, there seems to happening that for some reason the size of the resources is been taken based on the first row data.
function patchHOTCountSourceCols(tableInstance) {
if (tableInstance._originalCountSourceCols) {
return;
}
tableInstance._originalCountSourceCols = tableInstance.countSourceCols;
tableInstance.countSourceCols = function countSourceCols() {
var len = 0;
var settings = tableInstance.getSettings();
if (settings && settings.columns) {
len = settings.columns.length;
} else {
len = tableInstance._originalCountSourceCols();
}
return len || 0;
};
}
Thanks @aleksandra_budnik Yes, seems this is working, at least in the JSFiddle demo I created, once the version is officially released, I will upgrade my application and let you know in case of any error.
We’re gathering feedback from the users who test 8.0.0-beta1. Once we decide that we have tested everything and the feedback is positive we will update to stable 8.0.0.
It’s hard to tell how long it will take but I wouldn’t predict more than a month.