dhtmlxGrid

Hello,



How to get the row count of a grid which is populate with a connector (mysql database)?

I mean the total row count of the dataset , not only the number of rows in case of smart rendering and dynamic loading.



Thank you very much



Phil

grid.getRowsNum() always return total count of rows, for dynamical loading mode it will be total count of rows in grid ( not the count of already loaded rows )
Be sure to call this command from onXLE event or through second parameter of loadXML - it need to be called only after data loaded in grid.

This is the code, but it always return 0 value !!!
Can you tell me what 's wrong with it and give me and example.

Thanks

function mSelectDate(date) {
grille_Actualites.load(“Connect_Actualites_Jour.php?Date=”+ mCal.getFormatedDate("%Y-%m-%d", date),alert(grille_Actualites.getRowsNum()));
grille_Actualites.init();
grille_Messages.load(“Connect_Messages_Jour.php?Date=”+ mCal.getFormatedDate("%Y-%m-%d", date));
grille_Messages.init();
grille_Systemes.load(“Connect_Systemes_Jour.php?Date=”+ mCal.getFormatedDate("%Y-%m-%d", date));
grille_Systemes.init();
accordeon.cells(“actualites”).open();
}


Your code should looks like that:


grille_Actualites.load(“Connect_Actualites_Jour.php?Date=”+ mCal.getFormatedDate("%Y-%m-%d", date), function(){


alert(grille_Actualites.getRowsNum());


});