<ej:Grid ID="GridVehicles" runat="server" AllowResizeToFit="true" SelectionType ="Single" >
<EditSettings AllowAdding="true" EditMode="InlineFormTemplate" InlineFormTemplateID="#templateVehicle" />
<ClientSideEvents RowSelected="vehicle_selected" ActionComplete ="complete"/>
<ToolbarSettings ShowToolbar="true" ToolbarItems="add,cancel" ></ToolbarSettings>
<Columns>
<ej:Column Field="OrderID" IsPrimaryKey="true" Visible="false"></ej:Column>
<ej:Column Field="EmployeeID"></ej:Column>
</Columns>
</ej:Grid>
<script type="text/javascript">
function complete(args){
if(args.requestType == "add"){
this.getContentTable().find(".gridform").find("input").removeAttr("style");
}
}
</script> |