TableGrid Engine.js
DataStore
  • DataStore specifies, where there is data for the table.
  • RemoteDataStore({requestOptions:{url: 'data.php'}})
  • LocalDataStore(data)
ColumnModel
  • ColumnModel specifies a site of model of columns (properties of columns).
  • RemoteColumnModel({requestOptions:{url: 'column.php'}})
  • LocalColumnModel(column)
Work models
If you want to use Edit functions of tablegrid, you should use "Remote Engine" with server-side elements.
What in feature!
Now we work on "RemotePluginStore". Ability to connect plugins from a separate file.
// Demo cod
// initialization
window.addEvent('domready', function() {
    initDemo();
});
function initDemo() {   
  var g_grid = new Grid($('grid'), {
// Data location
    dataStore: new RemoteDataStore({requestOptions:{url:'crud.php'}}),
// Columns options location
    columnModel: new RemoteColumnModel({requestOptions:{url:'header.php'}}),
// example of Plugins connection
    gridPlugins: [
       new EditableGridPlugin({requestOptions:{url: 'crud.php'}}),
       new SortableGridPlugin(),
       new ResizableGridPlugin(),
       new SelectableGridPlugin({multipleSelection: true}),
       new ColumnOrderingGridPlugin(),
       new SummaryGridPlugin({checkboxes:true}),
       new MultipillerGridPlugin({styleselect:true}),
       new FormattedGridPlugin(),
       new QuickSearchGridPlugin(),
       new SearchGridPlugin(),
       new RemoteSearchGridPlugin({position:"RemoteSearch"}),
       new PaginatorGridPlugin(),
       new DragGridPlugin(),
       new GridViewPlugin()
    ]
  });	
};