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"?>

    

        

            

            

                

                    oMailCampaign.customColumnSort

                

                

                    mawmail

                

                

                

                    /mailcampaign/abonnees/get-overview

                

                

                    oMailCampaign.showLoading

                

                

                    oMailCampaign.setCounter

                

                

                    true

                

                    30

                

                

                    true

                    grid_hover

                

            

            E-mail adres

            Groep

            Test

            Eeee

            Gebounced

            Opties#cspan

            #cspan

        

    



return after scrolling :



<?xml version="1.0" encoding="iso-8859-1"?>



    

        test@menaddwork.nl

        test

        test

        ffff

        Nee

        manhattan-search-16^/mailcampaign/abonnees/abonnee-bekijken/3^Bekijken^oMailCampaign.setPopup(this);

        manhattan-edit-16^/mailcampaign/abonnees/bewerk/3^Bewerken^oMailCampaign.switchSubTab(this.href);

        manhattan-delete-16^/mailcampaign/abonnees/confirm-delete-subscriber/3^Verwijderen^oMailCampaign.setPopup(this);

    







Thank you for your reply!

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.

1210234390.zip (94.8 KB)