Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
143000 | Feb 28,2019 06:11 AM UTC | Feb 28,2019 06:38 AM UTC | jQuery | 1 |
![]() |
Tags: ejmGrid |
<script type="text/javascript">
$(function () {
$("#Grid").ejGrid({
// the datasource "window.gridData" is referred from jsondata.min.js
dataSource: window.gridData,
allowPaging: true,
actionComplete: function (args) {
if (args.requestType == "beginedit" || args.requestType == "add") {
this.getContentTable().find(".gridform").find("input").attr("autocomplete", "off") // to hide the autoComplete for all the input elements
// to hide autoComplete for specific column input box
var id = this.element.attr("id");
//Grid ID + ColumnName
$("#" + id + "CustomerID").attr("autocomplete", "off");
}
},
editSettings: { allowEditing: true, allowAdding: true, allowDeleting: true },
toolbarSettings: { showToolbar: true, toolbarItems: [ej.Grid.ToolBarItems.Add, ej.Grid.ToolBarItems.Edit, ej.Grid.ToolBarItems.Delete, ej.Grid.ToolBarItems.Update, ej.Grid.ToolBarItems.Cancel] },
columns: [
……………………………………………………………………..
]
});
});
</script> |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.