datagrid
Yesterday night i changed the datagrid api to jsObects own datagrid. Its a complete solution that is wrapped by a nice little javascript api
var data = new Array();
// var grid = new GRID();
// helpers for udefined stuff
var doNothing = null;
//instantiate grid
// var data_grid = Object();
var dg = new GRID();
function foo() {
var pn_ajax = init_ajax();
pn_ajax.add_pnmodapifunc('pnAjax', 'user', 'test', {}, function(ret){
data.push(ret);
});
pn_ajax.add_pnmodapifunc('pnAjax', 'user', 'test', {}, function(ret){
data.push(ret);
});
var cb_fin = function() {
var cols = {
col1: ["Index", null, null, true],
col2: ["PLZ", null, "69px", null],
col3: ["Name", null, "200px", null],
col4: ["Land", null, "100px", null],
}
dg.build(document, 'dg', cols, data);
}
pn_ajax.add_on_finalize(cb_fin);
pn_ajax.execute();
}

thanks to e-voc for the basic datagrid wrapper api, its really simple.
var data = new Array();
// var grid = new GRID();
// helpers for udefined stuff
var doNothing = null;
//instantiate grid
// var data_grid = Object();
var dg = new GRID();
function foo() {
var pn_ajax = init_ajax();
pn_ajax.add_pnmodapifunc('pnAjax', 'user', 'test', {}, function(ret){
data.push(ret);
});
pn_ajax.add_pnmodapifunc('pnAjax', 'user', 'test', {}, function(ret){
data.push(ret);
});
var cb_fin = function() {
var cols = {
col1: ["Index", null, null, true],
col2: ["PLZ", null, "69px", null],
col3: ["Name", null, "200px", null],
col4: ["Land", null, "100px", null],
}
dg.build(document, 'dg', cols, data);
}
pn_ajax.add_on_finalize(cb_fin);
pn_ajax.execute();
}
thanks to e-voc for the basic datagrid wrapper api, its really simple.
Comments
No new comments allowed (anymore) on this post.