BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
<ej:Grid ID="OrdersGrid" runat="server" AllowPaging="true" >
<EditSettings AllowEditing="true" AllowAdding="true" AllowDeleting="true"
EditMode="Dialog" ></EditSettings>
<ClientSideEvents ActionBegin ="begin"/>
<Columns>
<ej:Column Field="OrderID" IsPrimaryKey="true"/>
<ej:Column Field="CustomerID"/>
<ej:Column Field="EmployeeID"/>
</Columns>
</ej:Grid>
<script>
function begin(args) {
if (args.requestType == "add" || args.requestType == "beginedit") {
var proxy = this;
setTimeout(function () {
$("#" + proxy._id + "_dialogEdit").ejDialog({ height: "auto", width: "290px" });
//changing the height and width of dialog
$("#OrdersGridCustomerID")[0].style.width = "80px";
//"OrdersGridCustomerID" is the id of customer id's textbox
//- OrdersGrid is grid id, CustomerID is field name
}, 100)
}
}
</script> |