Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by lylyb on Jun 08, 2009 02:09
open dhtmlx forum
enableSmartRendering

Hello

code:
var mygrid = new dhtmlXGridObject('mygrid');
mygrid.setImagePath('/scripts/componentes/imgs/');
mygrid.setSkin("gray");
mygrid.enableLightMouseNavigation(true);
mygrid.enableAlterCss("even","uneven");
mygrid.enableSmartRendering(true,20);
mygrid.loadXML("/calculoBaseAction.do");

if (request.getParameter("posStart") != null){
posStart = request.getParameter("posStart");
}else{
posStart = "0";
}


problem:
after runned, calculoBaseAction.do is running repeatly, and not stop.
and always posStart is null, so I get posStart = "0"
but count can be readed right 20.

thanks
Answer posted by Support on Jun 08, 2009 03:16
Please be sure that your server side code outputs configuration (head section)only for first data request ( when posStart is not defined ) and outputs data only for all further data requests.

If issue still occurs - please provide a sample of XML response generated for such incorrect request.