Categories | Question details Back To List | ||||||||
Dynamic loading doesn't work Hi, I'm using the feature for loading big datasheets. But it doesn't work. I tweaked the url's inside dhtmlxgrid_srnd.js to this.xmlLoader.loadXML("/mailcampaign/abonnees/get-overview/iOffset/"+0+"/sn/"+(new Date()).valueOf()); and this.xmlLoader.loadXML("/mailcampaign/abonnees/get-overview/iOffset/"+start+"/iCount/"+count+"&sn="+(new Date()).valueOf()); for use in my application with an url rewrite router (zend framework) When i check out the requests in firebug it does give me back the required xml but somehow the vertical scrollbar is frozen and stays on the highest level. Here are my xml's retrieved from server : config : <?xml version="1.0" encoding="iso-8859-1"?> <rows> <head> <beforeInit/> <afterInit> <call command="setOnColumnSort"> <param>oMailCampaign.customColumnSort</param> </call> <call command="setSkin"> <param>mawmail</param> </call> <call command="enableAutoSizeSaving"/> <call command="loadXML"> <param>/mailcampaign/abonnees/get-overview</param> </call> <call command="setOnLoadingStart"> <param>oMailCampaign.showLoading</param> </call> <call command="setOnLoadingEnd"> <param>oMailCampaign.setCounter</param> </call> <call command="enableSmartRendering"> <param>true</param></call> <call command="setAwaitedRowHeight"> <param>30</param> </call> <call command="enableRowsHover"> <param>true</param> <param>grid_hover</param> </call> </afterInit> <column width="*" type="ro" align="left" sort="str">E-mail adres</column> <column width="*" type="ro" align="left" sort="str">Groep</column> <column width="*" type="ro" align="left" sort="str">Test</column> <column width="*" type="ro" align="left" sort="str">Eeee</column> <column width="*" type="ro" align="left" sort="str">Gebounced</column> <column width="30" type="3but" align="left">Opties</column><column width="30" type="3but" align="left">#cspan</column> <column width="30" type="3but" align="left">#cspan</column> </head> </rows> return after scrolling : <?xml version="1.0" encoding="iso-8859-1"?> <rows total_count="1" pos="10"> <row id="3"> <cell>test@menaddwork.nl</cell> <cell>test</cell> <cell>test</cell> <cell>ffff</cell> <cell>Nee</cell> <cell class="tdOption">manhattan-search-16^/mailcampaign/abonnees/abonnee-bekijken/3^Bekijken^oMailCampaign.setPopup(this);</cell> <cell class="tdOption">manhattan-edit-16^/mailcampaign/abonnees/bewerk/3^Bewerken^oMailCampaign.switchSubTab(this.href);</cell> <cell class="tdOption">manhattan-delete-16^/mailcampaign/abonnees/confirm-delete-subscriber/3^Verwijderen^oMailCampaign.setPopup(this);</cell> </row> </rows> Thank you for your reply! Answer posted by Support on May 08, 2008 01:07 >>I tweaked the url's inside dhtmlxgrid_srnd.js to
The modification is safe, and must not cause any side effects Attached sample contains the same xml as you provided and it works as expected. About second XML chunk - is it loaded directly after loading configuration? It contains the <rows total_count="1" The "total count" attribute allows to set global expected count of rows ( it is not the count of rows in current XML, but awaited maximum number of rows ) By default such value loaded with first portion of data, setting it to 1 means that grid will expect only 1 row in grid, and will ignore any row data after such limit. Please check what value used as total_count with first XML chunk. Attachments (1)
|