Have been using the grid for over a year since we purchased our license, all libraries are your current release versions. This is the first time we have found a need to use paging or smart rendering. We cannot seem to get either to work correctly. The initial data set (firs x records, in this case 100) load fine for both Smart Rendering as well as paging (in a dynamic approach). However when the second set is pulled from the XML, the issues arrive (note the page is retrieved as it should looking @ FireBug)…
Page Code:
[code]
[/code]Resources:
[code]
[/code]XML Returned (left one record instead of all 100 to display easier here):
<?xml version="1.0" encoding="UTF-8"?>
<rows total_count="385042" pos="0">
<head>
<afterInit>
<call command="setSortImgState">
<param>true</param>
<param>0</param>
</call>
</afterInit>
<beforeInit>
<call command="setImagePath">
<param><![CDATA[/_components/dhtmlxGrid/codebase/imgs/]]></param>
</call>
</beforeInit>
<column id="bizName" width="*" type="ro" align="left" sort="str"><![CDATA[Name]]></column>
<column id="bizCity" width="125" type="ro" align="left" sort="str"><![CDATA[City]]></column>
<column id="bizState" width="60" type="ro" align="left" sort="str"><![CDATA[State]]></column>
<column id="bizZip" width="50" type="ro" align="left" sort="str"><![CDATA[Zip]]></column>
<column id="bizPhone" width="90" type="ro" align="left" sort="str"><![CDATA[Phone]]></column>
<column id="bizFax" width="90" type="ro" align="left" sort="str"><![CDATA[Fax]]></column>
<column id="bizEmail" width="*" type="ro" align="left" sort="str"><![CDATA[Email]]></column>
</head>
<userdata name="default_grid_sort_col">0</userdata>
<userdata name="default_grid_sort_order">asc</userdata>
<row id="194726" >
<cell><![CDATA[#1 Accident Attorney In New York]]></cell>
<cell><![CDATA[New York]]></cell>
<cell><![CDATA[NY]]></cell>
<cell><![CDATA[10007]]></cell>
<cell><![CDATA[(877)492-7487]]></cell>
<cell><![CDATA[]]></cell>
<cell><![CDATA[]]></cell>
</row>
</rows>
The only change when page 2 is pulled (aside from the record content) is the dynamic:
<rows total_count="385042" pos="100">
There are no errors that occur, the grid just quits working. Not if we try a paging approach instead of smart rendering, it does not work either. Also, we will actually see an error if we try to add a footer into the XML. Changing the afterInit in the XML to use a footer:
<afterInit>
<call command="setSortImgState">
<param>true</param>
<param>0</param>
</call>
<call command="attachFooter">
<param><![CDATA[#text_search,#text_search,#select_filter,#text_search,#text_search,#text_search,#text_search]]></param>
<param><![CDATA[{text-align:left;,text-align:left;,text-align:center;,text-align:left;,text-align:left;,text-align:left;,text-align:left;}]]></param>
</call>
</afterInit>
Gives an immediate error:
row is undefined
_get_cell_value:function(row, ind, me…d)method ? method : “getValue”},
dhtmlxgrid.js (line 804)
Which also happens as soon as page 2 (or the next set of data in smart render) is fetched.
issue.zip (6.9 KB)