dhtmlXGridObject does not disable next page button

Hi,

I am using dhtmlXGridObject to display a grid in a popup window. When my server side code returns total_count=0 pos=0 in JSON, the next page button is still enabled in the grid. The grid shows “No records found” message, though.

Can somebody help me with this issue?

Thanks!

Hi,

I have found the following work-around.

	grphyPopupGrid_mdl_ca.clearAndLoad(

“getPopup.htm?id=”+popupWinRequestId
+"&geo="+popupWinGeography,

function(){
var popUpGridToolbar=grphyPopupGrid_mdl_ca.aToolBar;
if(popUpGridToolbar.getItemText(‘results’) == ‘No Records Found’){
popUpGridToolbar.disableItem(‘right’);
popUpGridToolbar.disableItem(‘rightabs’);
popUpGridToolbar.disableItem(‘pages’);
popUpGridToolbar.disableItem(‘perpagenum’);
}
}
);

Unfortunately the issue cannot be reproduced locally.
If it’s still occurs for you - please, provide with a demo link, where the issue can be reconstructed.