Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by siva on Nov 24, 2008 03:45
open dhtmlx forum
Pagination - dhtmlxgrid

Sir,

I had implemented dhtmlxgrid to load data dynamically. here is the coding

function gridLoad()
{
  mygrid = new dhtmlXGridObject('gridbox');
 mygrid.imgURL = "<%=appPath%>/DHTMLX/imgs/";
 mygrid.setStyle("","font-family:verdana;font-size:8pt;");
 mygrid.setHeader("No,Client No,FullName,Type,City,State,PostalCode,Phone,Territory,Address");
 mygrid.setSkin("modern");
  mygrid.setInitWidths("35,75,150,50,100,50,100,100,50,135");
 mygrid.setColAlign("left,left,left,left,left,left,left,left,left,left");
 mygrid.setColTypes("ro,ro,ro,ro,ro,ro,ro,ro,ro,ro");
  mygrid.loadXML("<%=appPath%>/clc/listpal.jsp",palback);
 mygrid.init();
}

 

I am correctly getting data's loading in the grid. i want to give pagination . can u suggest me with example how to implement pagination in mygrid. Waiting for your reply

thanks.

Answer posted by Support on Nov 24, 2008 04:45
You need
a) include dhtmlxgrid_pgn.js 
b) add next command to the init
      mygrid.enablePaging(...

http://dhtmlx.com/docs/products/dhtmlxGrid/samples/loading_big_datasets/pro_paging.html?un=1227532131000