Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Klaus Kohlschütter on Sep 30, 2009 08:33
open dhtmlx forum
Problems using splitAT and reloading data

Hello,
I'm using the pro version v.2.0 build 81107 and create a table using spitAt. So far so good, every works fine. But if I try to reload this table the header appears twice.

Here the code:

mygrid.enableAutoHeigth( false, '450' );
mygrid.setImagePath( "./codebase/dhtmlxGrid/imgs/" );
mygrid.enableRowsHover( true, 'grid_hover' );
...
mygrid.init();
mygrid.splitAt(2);
mygrid.enableSmartRendering( true, 23 );
mygrid.loadXML( "<? echo $GetData ?>", function() {
    wc.style.visibility = "hidden";
    mygrid.sortRows(14, "int", "des");
});

function ReloadData(fy) {
    ...
    mygrid.clearAll(true);

// THIS DOES'NT WORK BECAUSE THE GRID IS'NT CLEAR COMPLETELY.
    ...
    mygrid.loadXML( url, function() {
        ...
});
}

What can I do?

Klaus
Answer posted by dhxSupport on Oct 01, 2009 07:47
After applying of the split mode to the grid, it is not possible to recreate the grid structure (reload the grid with a different structure). Such grid can be only destructed.