Categories | Question details Back To List | ||
Grid paging strange err Hi there, I am following the sample on the website to add paging features to my data grid. but the output is strange: The paging feature is added but every page of the grid displays wrong number of entries. and I tried to add "Bricks Skin", but it does not work. my html code is: ================================================================================= <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Test DHTML Grid Paging</title> <link rel="STYLESHEET" type="text/css" href="dhtmlx/dhtmlxGrid/codebase/dhtmlxgrid.css" /> <link rel="STYLESHEET" type="text/css" href="dhtmlx/dhtmlxGrid/codebase/ext/dhtmlxgrid_pgn_bricks.css" /> <script src="dhtmlx/dhtmlxGrid/codebase/dhtmlxcommon.js" type="text/javascript"></script> <script src="dhtmlx/dhtmlxGrid/codebase/dhtmlxgrid.js" type="text/javascript"></script> <script src="dhtmlx/dhtmlxGrid/codebase/dhtmlxgridcell.js" type="text/javascript"></script> <script src="dhtmlx/dhtmlxGrid/codebase/ext/dhtmlxgrid_srnd.js" type="text/javascript"></script> <script src="dhtmlx/dhtmlxGrid/codebase/ext/dhtmlxgrid_pgn.js" type="text/javascript"></script> <script src="dhtmlx/dhtmlxGrid/codebase/ext/dhtmlxgrid_filter.js" type="text/javascript"></script> </head> <body> <div id="gridbox" style="background-color: white; overflow: hidden; width: 100%; height: 250px"> </div> <br /> <div id="pagingArea"> </div> <script type="text/javascript"> mygrid = new dhtmlXGridObject('gridbox'); mygrid.setImagePath("dhtmlx/dhtmlxGrid/codebase/imgs/"); mygrid.setHeader("Exec ID,User Name,Module Code, Command Code, Begin Date, Status, MarMachine Name, Name Admin Login As"); mygrid.attachHeader("#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter"); mygrid.setInitWidths("*,*,*,*,*,*,*,*"); mygrid.setColAlign("center,center,cemter,center,center,cemter,center,center"); mygrid.setSkin("modern"); mygrid.setPagingSkin("bricks"); mygrid.setEditable(false); mygrid.enablePaging(true,5,3,"pagingArea",true); mygrid.init(); mygrid.enableSmartRendering(true); mygrid.loadXML("data.xml");//this sample uses static loading </script> </body> </html> =============================================================================== and my xml file is: =============================================================================== <?xml version="1.0" encoding="UTF-8"?> <rows total_count='30' pos='0'> <row id='3'> <cell> 3 </cell> <cell> Nicolas WRIGHT </cell> <cell> WIN_SRV_MNG </cell> <cell> RESTART </cell> <cell> 7/9/2008 15:33:52 </cell> <cell> 1 </cell> <cell> </cell> <cell> </cell> </row> <row id='4'> <cell> 4 </cell> <cell> Christophe TALLEUX </cell> <cell> WIN_SRV_MNG </cell> <cell> RESTART </cell> <cell> 7/9/2008 15:38:04 </cell> <cell> 1 </cell> <cell> </cell> <cell> </cell> </row> <row id='5'> <cell> 5 </cell> <cell> Nicolas WRIGHT </cell> <cell> WIN_SRV_MNG </cell> <cell> RESTART </cell> <cell> 7/9/2008 15:38:15 </cell> <cell> 1 </cell> <cell> </cell> <cell> </cell> </row> <row id='6'> <cell> 6 </cell> <cell> Thierry HAUSSAIRE </cell> <cell> WIN_SRV_MNG </cell> <cell> STOP </cell> <cell> 7/9/2008 17:52:59 </cell> <cell> 1 </cell> <cell> </cell> <cell> </cell> </row> <row id='7'> <cell> 7 </cell> <cell> Nicolas WRIGHT </cell> <cell> WIN_SRV_MNG </cell> <cell> START </cell> <cell> 7/9/2008 17:53:09 </cell> <cell> 1 </cell> <cell> </cell> <cell> </cell> </row> <row id='8'> <cell> 8 </cell> <cell> Nicolas WRIGHT </cell> <cell> WIN_SRV_MNG </cell> <cell> RESTART </cell> <cell> 7/9/2008 17:53:14 </cell> <cell> 1 </cell> <cell> </cell> <cell> </cell> </row> <row id='9'> <cell> 9 </cell> <cell> Nicolas WRIGHT </cell> <cell> WIN_PRC_MNG </cell> <cell> KILL </cell> <cell> 7/10/2008 14:41:01 </cell> <cell> 1 </cell> <cell> </cell> <cell> </cell> </row> <row id='10'> <cell> 10 </cell> <cell> Aro RAZAFINDRAKOLA </cell> <cell> WIN_PRC_MNG </cell> <cell> KILL </cell> <cell> 7/10/2008 14:41:01 </cell> <cell> 1 </cell> <cell> </cell> <cell> </cell> </row> <row id='11'> <cell> 11 </cell> <cell> Nicolas WRIGHT </cell> <cell> WIN_PRC_MNG </cell> <cell> KILL </cell> <cell> 7/10/2008 14:54:25 </cell> <cell> 1 </cell> <cell> </cell> <cell> </cell> </row> <row id='12'> <cell> 12 </cell> <cell> Nicolas WRIGHT </cell> <cell> WIN_SRV_MNG </cell> <cell> RESTART </cell> <cell> 7/10/2008 17:06:37 </cell> <cell> 1 </cell> <cell> </cell> <cell> </cell> </row> <row id='13'> <cell> 13 </cell> <cell> Nicolas WRIGHT </cell> <cell> WIN_SRV_MNG </cell> <cell> RESTART </cell> <cell> 7/29/2008 12:51:20 </cell> <cell> 1 </cell> <cell> </cell> <cell> Thierry HAUSSAIRE </cell> </row> <row id='14'> <cell> 14 </cell> <cell> Nicolas WRIGHT </cell> <cell> WIN_SRV_MNG </cell> <cell> RESTART </cell> <cell> 7/30/2008 10:22:25 </cell> <cell> 1 </cell> <cell> </cell> <cell> Pierre-Yves AIMON </cell> </row> <row id='15'> <cell> 15 </cell> <cell> Nicolas WRIGHT </cell> <cell> WIN_SRV_MNG </cell> <cell> RESTART </cell> <cell> 7/30/2008 11:05:30 </cell> <cell> 3 </cell> <cell> </cell> <cell> </cell> </row> <row id='16'> <cell> 16 </cell> <cell> Nicolas WRIGHT </cell> <cell> WIN_SRV_MNG </cell> <cell> START </cell> <cell> 7/30/2008 11:16:30 </cell> <cell> 3 </cell> <cell> </cell> <cell> </cell> </row> <row id='17'> <cell> 17 </cell> <cell> Nicolas WRIGHT </cell> <cell> WIN_SRV_MNG </cell> <cell> START </cell> <cell> 7/30/2008 13:26:28 </cell> <cell> 3 </cell> <cell> </cell> <cell> </cell> </row> <row id='18'> <cell> 18 </cell> <cell> Nicolas WRIGHT </cell> <cell> WIN_SRV_MNG </cell> <cell> START </cell> <cell> 7/30/2008 13:27:18 </cell> <cell> 3 </cell> <cell> </cell> <cell> </cell> </row> <row id='19'> <cell> 19 </cell> <cell> Nicolas WRIGHT </cell> <cell> WIN_SRV_MNG </cell> <cell> START </cell> <cell> 7/30/2008 13:28:42 </cell> <cell> 3 </cell> <cell> </cell> <cell> </cell> </row> <row id='30'> <cell> 30 </cell> <cell> </cell> <cell> VSA_WEB </cell> <cell> WEB_LOGINAS </cell> <cell> 8/1/2008 14:11:59 </cell> <cell> 0 </cell> <cell> </cell> <cell> </cell> </row> <row id='32'> <cell> 32 </cell> <cell> </cell> <cell> VSA_WEB </cell> <cell> WEB_LOGIN </cell> <cell> 8/1/2008 14:16:59 </cell> <cell> 0 </cell> <cell> </cell> <cell> </cell> </row> <row id='33'> <cell> 33 </cell> <cell> </cell> <cell> VSA_WEB </cell> <cell> WEB_LOGIN </cell> <cell> 8/1/2008 14:17:04 </cell> <cell> 0 </cell> <cell> </cell> <cell> </cell> </row> <row id='34'> <cell> 34 </cell> <cell> </cell> <cell> VSA_WEB </cell> <cell> WEB_LOGIN </cell> <cell> 8/1/2008 14:17:27 </cell> <cell> 0 </cell> <cell> </cell> <cell> </cell> </row> <row id='35'> <cell> 35 </cell> <cell> </cell> <cell> VSA_WEB </cell> <cell> WEB_LOGIN </cell> <cell> 8/1/2008 14:17:51 </cell> <cell> 0 </cell> <cell> </cell> <cell> </cell> </row> <row id='36'> <cell> 36 </cell> <cell> </cell> <cell> VSA_WEB </cell> <cell> WEB_LOGIN </cell> <cell> 8/1/2008 14:20:23 </cell> <cell> 0 </cell> <cell> </cell> <cell> </cell> </row> <row id='37'> <cell> 37 </cell> <cell> </cell> <cell> VSA_WEB </cell> <cell> WEB_LOGIN </cell> <cell> 8/1/2008 14:20:35 </cell> <cell> 0 </cell> <cell> </cell> <cell> </cell> </row> <row id='38'> <cell> 38 </cell> <cell> </cell> <cell> VSA_WEB </cell> <cell> WEB_LOGIN </cell> <cell> 8/1/2008 14:20:52 </cell> <cell> 0 </cell> <cell> </cell> <cell> </cell> </row> <row id='39'> <cell> 39 </cell> <cell> </cell> <cell> VSA_WEB </cell> <cell> WEB_LOGIN </cell> <cell> 8/1/2008 14:21:19 </cell> <cell> 0 </cell> <cell> </cell> <cell> </cell> </row> <row id='40'> <cell> 40 </cell> <cell> </cell> <cell> VSA_WEB </cell> <cell> WEB_LOGIN </cell> <cell> 8/1/2008 14:23:07 </cell> <cell> 0 </cell> <cell> </cell> <cell> </cell> </row> <row id='41'> <cell> 41 </cell> <cell> </cell> <cell> VSA_WEB </cell> <cell> WEB_LOGINAS </cell> <cell> 8/1/2008 14:23:16 </cell> <cell> 0 </cell> <cell> </cell> <cell> </cell> </row> <row id='42'> <cell> 42 </cell> <cell> </cell> <cell> VSA_WEB </cell> <cell> WEB_LOGIN </cell> <cell> 8/1/2008 14:30:19 </cell> <cell> 0 </cell> <cell> </cell> <cell> </cell> </row> <row id='43'> <cell> 43 </cell> <cell> </cell> <cell> VSA_WEB </cell> <cell> WEB_LOGIN </cell> <cell> 8/1/2008 14:30:23 </cell> <cell> 0 </cell> <cell> </cell> <cell> </cell> </row> </rows> =============================================================================== Thanks! Answer posted by dhxSupport on Mar 19, 2009 07:56 This happens because of you are using smart rendering mode. Pagination output and smart rendering are mutually exclusive functionalities. |