Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Brendan on Oct 30, 2008 11:58
open dhtmlx forum
CSV exporting with smart rendering

Firstly, I want to thank you for helping solve my last problem of correctly resizing the parent grid of a sub grid that has smart rendering and auto-height enabled! Worked perfectly!

My next problem is not being able to export sub grids, and I assume grids in general, to CSV when smart rendering is enabled on the grid. I get the error "r.childNodes has to properties", and that seems to appear when all the data in the smart rendering enabled grid is not currently showing/loaded in the grid/sub grid. Is there a solution for this? Perhaps load all the data first then try to export? I thought I read in another thread here about static smart rendering fixing this problem, but I can't seem to find that thread again. Currently I am using the server side supported smart rendering. Thanks yet again!
Answer posted by Support on Oct 31, 2008 02:59
>>when smart rendering is enabled on the grid
If you are using dynamical smart rendering - the grid doesn't have info about all rows and will fail while serialization. 
If you are using static smart rendering ( or dyn. srnd with all data loaded ) - the serialization  must go correctly. 

>>Is there a solution for this? Perhaps load all the data first then try to export? 
It possible to add check to the code , to ignore not loaded row - but in such case serialization will contain only part of data, which is not the most logical behavior. 
Loading of all data , will solve issue for sure, but unfortunately you can't force such action through grid's API.

The only stable solution - switch to the static smart rendering , the only disadvantage - all data must be loaded at once, which may cause high loading time.