dHTMLx Dynamic Paging with Move Column

Hello,



I would just like to report an issue wherein the first row of the table does not arrange properly after I move the columns, but the rest of the rows is. I using dHTMLx enterprise suite 1.6 utilizing server-side paging and sorting, JSON parsing and splitAt functions. The code is already properly rendering these functions.



Below is a sample code snippet:



tableGrid.enableColumnMove(true);

tableGrid.init();

tableGrid.splitAt(1);

tableGrid.parse(data, ‘json’);

tableGrid.setSizes();



Do I just have to re-arrange the method calls?



Thank you for the previous replies on my inquiry.


The code, which you are using, is correct and must not cause any problems.
The same code locally works as expected - sample sent by email

If problem still occurs for you - please provide any kind of sample where issue can be reconstructed.



Thank you for your prompt reply. Kindly see attached html file. Notice that the data in the first row is not swapping properly upon column switch but the rest of the rows are.



 


basicSearch.htm (15.1 KB)

The first line of your dataset has ID == 0 which cause problem ( ID == 0 reserved for inner usage ) , just change it to something different to resolve problem.

I’ll try this one shortly. Thanks again. We appreciate your prompt reply.


The fix worked! Thanks.



I got another issue though… using the same example, I get a big gap between columns whenever I resize (shrink to the point of hiding) the columns. Kindly accommodate this one.