Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Richard White on Feb 07, 2008 13:43
open dhtmlx forum
printView

hi,

we are loading a grid via xml and are using distributed parsing to load the grid

however when we use printview we only get the data that has been loaded, but we need it to print all the data including the data that has not been loaded

how do we force this?

thanks
Answer posted by Support on Feb 08, 2008 01:32
>> but we need it to print all the data including the data that has not been loaded

In case of distributed parsing - there is no way to force data loading, because it already in loading process, which may take a some time.
You can add some kind of flag and enable print button only after data fully parsed

grid.attachEvent("onXLE",function(){
    //will be called only after all data parsed
    document.getElementById("print_button").enabled=true;
};
grid.loadXML(url);