<ej:Grid ID="FlatGrid" runat="server" AllowSorting="True" AllowPaging="True" >
<ClientSideEvents ActionComplete="complete" />
<EditSettings AllowEditing="True" AllowAdding="True" AllowDeleting="True" EditMode="ExternalFormTemplate" ExternalFormTemplateID="#template">
</EditSettings>
<Columns>
<ej:Column Field="OrderID" HeaderText="Order ID" IsPrimaryKey="True" TextAlign="Right" Width="75" />
<ej:Column Field="OrderDate" HeaderText="Order Date" TextAlign="Right" Width="80" Format="{0:MM/dd/yyyy hh:mm:ss}" />
<ej:Column Field="Freight" HeaderText="Freight" TextAlign="Right" Width="75" Format="{0:C}" />
</Columns>
</ej:Grid>
<script type="text/template" id="template">
<table cellspacing="10">
<tr>
<td>Order ID</td>
<td>
<input id="OrderID" name="OrderID" disabled="disabled" value="{{:OrderID}}" class="e-field e-ejinputtext" style="width:116px;height:28px" />
</td>
</tr>
<tr>
<td>Ordre Date</td>
<td>
<input type="text" id="OrderDate" name="OrderDate" value="{{:OrderDate}}" />
</td>
<td>Freight</td>
<td>
<input type="text" id="Freight" name="Freight" value="{{:Freight}}" />
</td>
</tr>
</table>
</script>
<script type="text/javascript">
function complete(args) {
$("#Freight").ejNumericTextbox();
$("#OrderDate").ejDateTimePicker();// to render the normal input text box as ejDateTimePicker
}
</script>
|