<button id="Remove">Remove</button><br />
<script type="text/javascript">
$(function () {
var dataManger = new ej.DataManager({
});
…
.then(function (e) {
$("#Grid").ejWaitingPopup("hide")
$("#Grid").ejGrid({
…
dataSource: e.result,
allowPaging: true,
});
});
…
$("#Remove").ejButton({
type: "button",
click: function (args) {
var grid = $(".e-grid").ejGrid("instance");
var dataManger = new ej.DataManager({
});
grid.model.columns = [{ field: "EmployeeID", headerText: "Employee ID", textAlign: ej.TextAlign.Right, width: 90 },
];
grid.dataSource(dataManger);
}
});
|