Skip to content
Snippets Groups Projects
Commit e145e37a authored by Renaud Le Gac's avatar Renaud Le Gac
Browse files

Script to test a grid in the simplest case.

parent b98d29b2
No related branches found
No related tags found
No related merge requests found
/**
* grid_0.js
*
* To test and debug grid widget -- the simplest case
* $Id$
*
*/
Ext.namespace('App.grid');
/**
* main function
*/
var main = function(provider, response){
var cfg,
grid,
vp;
if (response instanceof String) {
Ext.Msg.alert('ERROR', response);
return;
}
if (response.type === 'exception') {
Ext.Msg.alert('ERROR', response.xhr.statusText);
return;
}
cfg = response.result;
cfg.plugins = ['pGridRowEditorContextMenu'];
var vp = new Ext.Viewport({
region: 'center',
layout: 'fit',
items: [cfg],
});
};
Ext.onReady(function(){
Ext.QuickTips.init();
Ext.Direct.addProvider(App.REMOTE_API);
Dbui.getGrid('countries', main)
});
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment