var dataManager = ej.DataManager({ url: window.location.rel='nofollow' href + '/_GRID', offline: loadAll, adaptor: 'UrlAdaptor' });
[...]
$grid.ejGrid({ dataSource: dataManager, actionBegin: function (args) { $.each(Object.keys(params), function () { args.model.query.addParams(this.toString(), params[this]); }); }, offline: false, columns: columns, allowReordering: true, showColumnChooser: true, allowResizing: true, allowResizeToFit: true, allowScrolling: true, scrollSettings: { allowVirtualScrolling: true, height: height, width: 0 }, allowFiltering: true, filterSettings: { filterType: 'menu' }, allowSearching: true, allowSorting: true, allowMultiSorting: true, allowSelection: true, selectionType: 'single', selectedRowIndex: 1, rowSelected: function (args) { console.log(args.data); } }); |