Maximize productivity with
30% off* for a limited time
using BOOSTDEV30.
Includes 3- and 5-packs.
*Some exclusions may apply.New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.
<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> |