Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by raj on Jun 03, 2008 23:46
open dhtmlx forum
splitAt with smartrendering functionality

Hi,

I am using dhtmlxgrid with smartrendering, I want to split column at 1st column,
here I had called splitAt(1) function, but I am getting an error while loading the grid at following location in dhtmlxgrid_srnd.js file:

function : _askRealRows()
Line : if (obj._fake) obj._fake.rowsCol[i+j].className=obj.rowsCol[i+j].className;
Error : _fake.rowsCol[] is null or not an object

The grid was split but not loaded and giving the above error message, but If I commented the splitAt() function and loading the grid, it was loaded successfully.

So, can u please help me to solve the above problem?

/Raj
Answer posted by Support on Jun 04, 2008 01:31
In which moment of initialization the splitAt command was called? Please be sure that it was called after grid structure initialized and smart rendering enabled , but before data loaded in grid.
If problem still occurs for you - please contact us directly, we can send latest version of related extensions for dhtmlxgrid 1.5 ( while same problem can't be reconstructed with local samples, there were a few fixes which can resolve issue )

By the way, according to provided code snippet - you are using dhtmlxgrid 1.5 ( or earlier ) -  you can try to update to dhtmlxgrid 1.6 which works more correct with split mode.