Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Duncan Green on Jul 11, 2008 03:51
open dhtmlx forum
Grid Serialization when splitAt used

I am having a problem serializing the grid when I use splitAt. Here is the code to do the serialization:

function serializeGridData(){
mygrid.setSerializationLevel(true, true);
var myXmlStr = mygrid.serialize();
alert(myXmlStr);
$("dhtmlxXml").value = myXmlStr;
}

Note - the alert is there just for debugging.

When I split the grid after the first column I get the following error (see below for the config xml):

c has no properties
cells("27", 0)getfile.aspx (line 5703)
setColumnHidden()getfile.aspx (line 26)
_serializeRow(tr, undefined)getfile.aspx (line 2880)
_serialise(undefined, undefined, undefined)getfile.aspx (line 2831)
serialize()getfile.aspx (line 2974)
serializeGridData()viewdomainsforvie... (line 37)
onclick(click clientX=0, clientY=0)viewdomainsforvie... (line 1)
[Break on this error] var cell = (c._childIndexes ? c.childNodes[c._childIndexes[col]] : c.childNode...

The configuration xml for the grid is as follows:

<rows total_count="30" pos="0">
<head>
<afterInit>
<call command="splitAt">
<param>1</param>
</call>
<call command="enableSmartRendering">
<param>true</param>
<param>50</param>
</call>
</afterInit>
<column width="50" type="ch"> </column>
<column width="100" type="ro" sort="server">Domain</column>
<column width="100" type="ro" sort="server">TLD</column>
<column width="100" type="ro" sort="server">Country</column>
<column width="100" type="ro" sort="server">Region</column>
<column width="100" type="ro" sort="server">Puny code</column>
<column width="100" type="ro" sort="server">Status</column>
<column width="100" type="ro" sort="server">Watch</column>
<column width="150" type="link" sort="server">Registrant</column>
<column width="150" type="link" sort="server">Admin contact</column>
<column width="150" type="link" sort="server">Technical contact</column>
<column width="100" type="ro" sort="server">Registrar</column>
<column width="100" type="ro" sort="server">Renewal date</column>
<column width="100" type="ro" sort="server">Email</column>
<column width="100" type="ro" sort="server">Website</column>
<column width="100" type="ro" sort="server">Web server</column>
<column width="100" type="ro" sort="server">Comment</column>
<column width="100" type="ro" sort="server">Ref1</column>
<column width="100" type="ro" sort="server">Ref2</column>
<column width="100" type="ro" sort="server">Ref3</column>
<column width="100" type="ro" sort="server">Cost centre</column>
<column width="150" type="ro" sort="server">Account name</column>
<column width="100" type="ro" sort="server">Name servers</column>
<column width="100" type="ro" sort="server">Portfolio sections</column>
</head>
</rows>

This problem only appears when the grid has more than a certain number of rows (27 strangely) and is fine for fewer rows.


Many Thanks
Duncan



Answer posted by Support on Jul 11, 2008 07:17
Problem confirmed and fixed - please contact us directly at support@dhtmlx.com - we will provide updated js files.
Answer posted by Tejas Shah on Sep 19, 2008 05:12
Hi there,
             I am also facing the same issue.
             Please send me the fixed js file to my email Id : ejash1983@gmail.com
Answer posted by Tejas Shah on Sep 22, 2008 23:50
Please send me the updated js file .
ejash1983@gmail.com

I will be grateful to you guys !!!
Answer posted on Sep 23, 2008 02:44
PLease contact support team on support@dhtmlx.com providing your reference number - you'll get files then.