Hello,
we are currently try to integrate dhtmlxdataview with dynamic loaded data.
Currently we´ve a Problem with the “Paging” mechanism.
I would like to trigger an event on every PageChange. So i could store the currently viewed Page within a session or cookie.
But - it seems it´s impossible to attach an Event. In the Documentation i´ve found the event “onafterpagechange” or “onbeforepagechange”. But, i tryed many version of integration - no resolution triggers the event.
Can you help me to explan how to setup Paging Events correctly with dhtmlxdataview?
My current initialization is really clear:
pdata = new dhtmlXDataView({
container:"data_container",
select:false,
type:{
template:"#products_id# : #status#<br/>#points_needed#",
height:40,
template_loading:"Loading..."
},
pager:{
container:"paging_here",
size:4,
group:8
}
});
pdata.add({
Package:"test one",
Version:"0.1",
Maintainer:"dhtmlx"
});
pdata.attachEvent("onItemClick", function (id, ev, html){
alert(id);
alert(ev);
alert(html);
return true;
});
pdata.load("productloader.php");
var pager = pdata.config.pager;
pager.attachEvent("onafterpagechange", function(ind,count){ alert('test'); });
Regards,
Michael