Incorrect Xml on scrolling

Hi again,

I have successfully implemented a grid with loadXML from a jsp page (which outputs a xml string in the format of ). The data is loaded without any problems, but on scrolling down an error message is shown stating that there is an “Incorrect Xml” even though the data is shown. I’m using smartrendering ans setXMLAutoLoading for large datasets.

The following is the code i’m using for such:

mygrid = new dhtmlXGridObject(‘gridbox’);


        mygrid.setHeader(“Policy Number, Surname, Name, … … …”);















String accept = request.getHeader(“accept”);

if (accept.indexOf(“application/xhtml+xml”) >= 0){





System.out.println("<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n");

int posStart = Integer.parse(request.getParameter(‘posStart’));

int count = Integer.parse(request.getParameter(‘count’));



        for (int i = 0; i < count; i++){


            System.out.println("" + i + “index is “+(i+posStart)+” " +

                      “load turn started from “+ posStart +” + " + count +””);




Any information on ho to solve this issue would be great!



I’m really not sure which result expected, when both auto-loading and smart rendering modes used.

Auto loading mode load data on demand ( while scrolling )

Smart-rendering can work in two modes
    - all data loaded at once and just parsed on demand
    - data loaded by demand while scrolling
            mygrid.enableSmartRendering(“dynload.jsp”.limit); //limit count of rows which expected, this is total count of rows in grid

So you need to use one mode at time, I suggest to use SmartRendering which provides better experience ( static modes for rows < 1000, dynamic mode for bigger datasets )