public openCommand = [{
type: "Detail", buttonOptions: {
text: "Open Report",
width: "100",
click: this.onOpenReportClick.bind(this),
}
}];
onOpenReportClick(e: any) {
this.navigate();
} |
clicked(event) {
var obj = $("#gridData").ejGrid("instance");
obj.columns("ShipCity","add")
} |
function addColumns(args) {
var newColumn = { field: "ShipName", headerText: "Ship Name", width: 100 }
var obj = $("#Grid").ejGrid("instance")
var gridColumns = obj.model.columns.push(newColumn);
obj.columns(gridColumns);
}
|