BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
button = new ej.buttons.Button({});
button.appendTo('#normalbtn');
button.element.addEventListener("click", function(){
grid.dataSource = window.orderData.splice(4,4); // updated the dataSource of Grid
});
var grid = new ej.grids.Grid({
dataSource: window.orderData.splice(0,4),
………………………………………..
});
grid.appendTo('#Grid');
|
button = new ej.buttons.Button({});
button.appendTo('#normalbtn');
button.element.addEventListener("click", function(){
grid.refresh(); // to refresh the content
grid.refreshColumns(); // to refresh the refreshColumns
grid.refreshHeader(); // to refresh the header content
});
var grid = new ej.grids.Grid({
dataSource: window.orderData,
allowPaging: true,
columns: [
……………………………………..
],
pageSettings: { pageCount: 5 }
});
grid.appendTo('#Grid');
|
document.getElementById('EmptyDataSource').addEventListener('click', function(){
var gridObj = document.getElementById('Grid').ej2_instances[0];
var gridData = [];
gridObj.dataSource = gridData; // Binding empty dataSource to Grid
});
|