BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
//Grid
$("#Grid").ejGrid({
// the datasource "window.gridData" is referred from jsondata.min.js
dataSource: window.gridData,
allowPaging: true,
editSettings: { allowEditing: true, allowAdding: true, allowDeleting: true },
actionComplete:"actionComplete",
toolbarSettings: {
showToolbar: true, toolbarItems: ["search", "delete"],
customToolbarItems: [{
templateID: "#editTemplate"
},
{
templateID: "#addTemplate"
}]
},
columns: [
. . .
]
});
});
//Action complete event
function actionComplete(args) {
var customToolbar;
for (var i = 0; i < this.model.toolbarSettings.customToolbarItems.length; i++) {
customToolbar = this.model.toolbarSettings.customToolbarItems[i];
var customToolbarValue = customToolbar["templateID"].slice(1); // get the customtoolbar value
if (customToolbarValue == "editTemplate")
$("#" + this._id + "_" + customToolbarValue).attr({
"data-content": "Edit" //here you can set the cyrillic value
});
else if(customToolbarValue == "addTemplate")
$("#" + this._id + "_" + customToolbarValue).attr({
"data-content": "Add" //here you can set the cyrillic value
});
}
}
|