Categories | Question details Back To List | ||
enablePaging Hi Every one, This is santosh, I have the code for fetching records shown below. Here grid is fetching records and working fine.after fetching the records it is showing paging controls correctly. But it is showing paging state as "No records found".Could any one please help me to solve this bug. var aMenu = null; var mygrid=null; function doOnLoad(){ aMenu=new dhtmlXContextMenuObject('150',0,'/resources/EHRWebUtils/EHRMenu/EHRMenuImages/'); aMenu.menu.setGfxPath("/resources/EHRWebUtils/EHRMenu/EHRMenuImages/"); aMenu.menu.loadXML("/resources/EHRWebXml/contactListContextMenu.xml"); aMenu.setContextMenuHandler(onMenuItemSelected); //Contact List Grid mygrid = new dhtmlXGridObject('gridbox'); mygrid.setImagePath("/resources/EHRWebUtils/EHRGrid/EHRGridImages/"); mygrid.setHeader("External Provider ID,Last Name, First Name, Contact Type, Specialty, Mobile Phone, Work Phone 1, UPIN Number, NPI Number "); mygrid.setInitWidthsP("0,15,15,20,15,0,10,13,12"); mygrid.enableAlterCss("even","uneven"); mygrid.setColAlign("center,left,left,left,left,left,left,left,left"); mygrid.setColTypes("ro,ro,ro,ro,ro,ro,ro,ro,ro"); mygrid.setColSorting("int,str,str,str,str,str,str,str,str"); mygrid.enablePaging(true,17,4,"pagingArea",true,"recinfoArea"); mygrid.enableRowsHover(true,'grid_hover'); mygrid.setSkin("xp"); mygrid.enableAutoHeigth(true,"370"); mygrid.enableContextMenu(aMenu); mygrid.setOnLoadingStart(setLoadingStatus); mygrid.setOnLoadingEnd(setRowSelected); //mygrid.preventIECashing(true); var lastName = document.getElementById('lastN').value; var firstBox=document.getElementById('contactType_ID'); var contactTypeId = firstBox.options[firstBox.selectedIndex].value; mygrid.setXMLAutoLoading("contactListXML.jsp?type=search&lastName="+lastName+"&contactTypeId="+contactTypeId); mygrid.init(); mygrid.loadXML("contactListXML.jsp?type=search&lastName="+lastName+"&contactTypeId="+contactTypeId); if(document.forms[0].contactType[1].checked==true) { //alert('non provider'); document.getElementById("pinDetails").style.visibility = 'hidden'; } Answer posted by dhxSupport on Oct 06, 2009 03:31 To fix this issue try to comment mygrid.setXMLAutoLoading("contactListXML.jsp?type=search&lastName="+lastName+"&contactTypeId="+contactTypeId); Answer posted by santhosh on Oct 06, 2009 05:24 ThanQ for your reply. it is working fine now. But i have total around 2000 records, but it is showing only 100 records.could please verify it. thanQ Answer posted by dhxSupport on Oct 06, 2009 06:27 Unfortunately we cannot reproduce this issue locally. What version of dhtmlxGrid do you use? Please try to update your files to the latest one. |