@Grid
<ej:Grid ID="Grid1" AllowPaging="True" runat="server">
<Columns>
<ej:Column Field="OrderID" HeaderText="Order ID" IsPrimaryKey="true" TextAlign="Right" Width="90" />
<ej:Column Field="CustomerID" HeaderText="Customer ID" Width="100"> </ej:Column>
<ej:Column Field="ShipCountry" HeaderText="ShipCountry" Width="100" />
</Columns>
<EditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true" EditMode="InlineFormTemplate" InlineFormTemplateID="#template" />
. . .
</ej:Grid>
@template form
<script type="text/template" id="template">
<b>Order Details</b>
<table cellspacing="10">
<tr>
<td style="text-align: right;">Order ID
</td>
<td style="text-align: left">
<input id="OrderID" name="OrderID" value="{{: OrderID}}" disabled="disabled"
class="e-field e-ejinputtext valid e-disable" style="text-align: right; width: 116px; height: 28px" />
</td>
<td style="text-align: right;">Customer ID
</td>
<td style="text-align: left">
<input id="CustomerID" name="CustomerID" value="{{:CustomerID}}" class="e-field e-ejinputtext valid"
style="width: 116px; height: 28px; text-align: left!important" />
</td>
</tr>
<tr>
<td style="text-align: right;">Freight
</td>
<td style="text-align: left">
<input type="text" id="Freight" name="Freight" value="{{:Freight}}" />
</td>
<td style="text-align: right;">ShipCountry
</td>
<td style="text-align: left">
<select id="ShipCountry" name="ShipCountry">
<option value="Germany">Germany</option>
<option value="Mexico">Mexico</option>
<option value="UK">UK</option>
<option value="Sweden">Sweden</option>
<option value="Colchester">France</option>
<option value="Denmark">Italy</option>
<option value="Spain">Spain</option>
</select>
</td>
</tr>
<tr>
<td style="text-align: right;">ShipCity
</td>
<td style="text-align: left">
<input id=”ShipCity" name="ShipCity" class="e-field e-ejinputtext valid"
style="width: 116px; height: 28px" value="{{:ShipCity}}" />
</td>
<td style="text-align: right;">EmployeeID
</td>
<td style="text-align: left">
<input id="EmployeeID" name="EmployeeID" class="e-field e-ejinputtext valid"
style="width: 116px; height: 28px" value="{{:EmployeeID}}" />
</td>
</tr>
</table>
</script> |