dhtmlxgrid with ajax

>>suppose b.xml has 1500 records, there should be has 30 page, divided into 6 group, each groups has 5 pages right???
>>but actually if show 3 pages per group with 10 group only.

Problem confirmed and fixed, fix will be released as part of next build.
If you need fix ASAP - please contact directly at support@dhtmlx.com , and provide your ref. number - we will send you updated code.

In common case you can access and update the count or pages in group as
    grid.pagesInGroup=10;
    grid.changePage();
   


>>but
actually I have 10000 record, 500 per page, when I changing the page,
IE seems hang for several second, that mean it is creating the page.

>>so
why I can’t see the “loading” DIV? can I change your source code to
make the DIV show earlier (before creating the pages)??how???

Issue caused by javascript nature, while current javascript thread not fineshed no any change in DOM will be rendered , so in result you have

- javascript started
- first event called
- modification in DOM
- second event aplied
- modification reverted
- new rows added to grid
- javascript ended
- changes to DOM rendered in browser

the only way to made you message visible is to break single thread on few, by using setTimeout functionality.

>>but the style parameter is not work, here are my program

color:red;textalign-left,color:blue,color:blue,color:blue
this solution is not work for me, it has nothing changed, is it relate to the version problem again???
>other than change the style, are there any standard ways to change the style to cells in price type? (ref. to the attachment)

You can access cell through DOM as
    grid.ftr.rows[row_index].cells[cell_index].style.color="some";
where row_index - index of row inside footer.
( the styles works correctly for me, if necessary I can provide working sample )

>>setSize() is not useful in this case, I find the problem is in here
>
>

Unfortunately problem can't be reconstructed with local samples.
If problem still occurs for you - please provide any kind of sample where problem can be reconstructed. ( you can contact directly at [support@dhtmlx.com](mailto:support@dhtmlx.com) )



sorry sir I have a new question again



I try to use



loadXML(‘a.xml’);



in safari, and it works. But it has no response if I use grid.parseXML(xml_object); directly. I’m sure my program has no problem since it works in IE and FF too





 

Actually there must not be any difference for safari 2.x or safari 3.x - they both use standard XMLHttpRequest object, so code must work for them same as for FireFox
In case of safari 1.x problem can really occur, because it use different loading scheme.

Which value you are use as incoming param of parseXML ? ( please be sure that it is valid XML object )


my safari is 2.x



I’m sure I pass a valid xml object beacause it work in all browser except safari.
will it be possible that safari support loadXML() but not parseXML() since it works in loadXML.

We still not able to reconstruct such problem - if it possible to isolate is as separate sample - please send it to support@dhtmlx.com, becuase we can’t suggest anything without ability to reconstruct issue


1 more bug seems closed with the last bug I report



function setGrid(){
    mygrid.enablePaging(true,50,5,‘resultPaging’,true);
    mygrid.setOnPaging(showDiv);
    mygrid.setOnPageChanged(hideDiv);
    mygrid.loadXML(‘a.xml’);  
}




function reloadGrid(){
    mygrid.detachHeader(0);
    mygrid.detachFooter(0);
    mygrid.xmlLoader.destructor();
    if (mygrid.ftr){
        mygrid.ftr.parentNode.removeChild(mygrid.ftr);
        mygrid.ftr=null;
    }
    mygrid.clearAll(true);
    mygrid.loadXML(‘b.xml’);  
}



a.xml has zero record, so the counter will show "no records"
then I load b.xml, b has 49 record, but counter still show "no records"
I found that the counter will only show correct result when the num of xml records is larger than
“mygrid.enablePaging(true,50,5,‘resultPaging’,true);”
 num of rec per page, otherwise it won’t updated