I’ve a grid with paging.
I’ve a datatset of 272 records.
The grid displays 50 rows per page.
First time, the grid loads the first 50 rows and displays the paging bar with 6 “bricks” (1, 2, 3, 4, 5, 6)
When I click on brick 2 nothing happens, the next 50 rows are not loaded and the brick goes back to brick 1.
This is my code
mygrid = new dhtmlXGridObject('gridbox');
mygrid.setImagePath("dhtmlx/dhtmlxGrid/codebase/imgs/");
mygrid.setSkin("dhx_skyblue");
mygrid.init();
mygrid.enablePaging(true, 50, 10, "pagingArea", true, "infoArea");
mygrid.setPagingSkin("bricks");
mygrid.loadXML("getGridRecords.asp");
In getGridRecords.asp, I configure the header using XML, below is the code.
Response.write("<column width='150' type='txt' align='left' sort='str'>")
Response.write("Field 1")
Response.write("</column>")
If I incorporate this code
mygrid.setHeader(“Field 1”);
AND take out the below code, the paging works fine.
'–Response.write("")
'-- Response.write(“Field 1”)
'–Response.write("")
What’s the problem going around here? I’ve crack my head to solve this issue but still can’t find the solution. Appreciate support help.
For your information, I need to configure the header via XML because the header name keep changing from time to time.