BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
<GRID>
@(Html.EJ().Grid<object>("FlatGrid")
. . . .
.ClientSideEvents(e=>e.RecordClick("recordClick").ActionComplete("actionComplete"))
.Columns(col =>
{
. . .
}))
<Record Click>
function recordClick(args) {
//Save the data while select the record.
OrderID = args.data["OrderID"]
CustomerID = args.data["CustomerID"];
EmployeeID = args.data["EmployeeID"];
Freight = args.data["Freight"];
OrderDate = args.data["OrderDate"];
ShipCity = args.data["ShipCity"];
}
<ActionComplete>
function actionComplete(args) {
if (args.requestType == "add" && this.model.isEdit)
{
//store the saved data into new added row
$("#" + this._id + this.model.columns[0]["field"]).val(OrderID);
$("#" + this._id + this.model.columns[1]["field"]).val(CustomerID);
$("#" + this._id + this.model.columns[2]["field"]).val(EmployeeID);
$("#" + this._id + this.model.columns[3]["field"]).val(Freight);
$("#" + this._id + this.model.columns[4]["field"]).val(OrderDate);
$("#" + this._id + this.model.columns[5]["field"]).val(ShipCity);
}
}
|