Hello, I am registered user and have commercial version.
I am trying to use dynamic loading iwth paging.
My data is coming out from sql server. I am setting up my grid exactly like sample provided for .net. action page has createXML method that generates xml from dataset. Do I need to do anything special to get the dynamic loading work with paging? I have below code to initialize the grid but it doesn’t seem to dynamically load the data. Everything is loaded in the first phase.
parentGrid = new dhtmlXGridObject(‘gridbox’);
parentGrid.setImagePath(“imgs/”);
parentGrid.setHeader(“col1ID,2, 3, 4, 5”);
parentGrid.setColTypes(“ed,ed,ed,ed,ed”);
parentGrid.setInitWidths(“100,100,25,100,50”)
parentGrid.setColAlign(“left,left,left,left,left”)
parentGrid.setColSorting(“str,str,str,date,str”)
parentGrid.enableMultiselect(true)
parentGrid.setEditable(false);
parentGrid.preventIECashing(true);
parentGrid.enablePagingWT(true,5,3,“parentGridArea”);
parentGrid.init();
var loadDataURL = “action.aspx?type=createXML”;
parentGrid.setXMLAutoLoading(loadDataURL);
//load grid content
parentGrid.loadXML(loadDataURL);
Please, help!
thanks,
Darshita