<script type="text/template" id="template">
<b>Order Details</b>
<table cellspacing="10">
……………………………………………………….
<tr>
<td style="text-align: right;">Fecha1
</td>
<td style="text-align: left">
<input id="Fecha1" name="Fecha1" class="e-field e-ejinputtext valid"
style="width: 116px; height: 28px" value="{{:Fecha1}}" />
</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>
<ej:Grid ID="Grid1" runat="server" AllowPaging="True" OnServerEditRow="EditEvents_ServerEditRow" OnServerAddRow="EditEvents_ServerAddRow"
OnServerDeleteRow="EditEvents_ServerDeleteRow">
<ClientSideEvents ActionComplete="complete" />
<Columns>
………………………………………………………….
<ej:Column Field="Fecha1" HeaderText="ShipName" Width="110"></ej:Column>
<ej:Column Field="ShipCountry" HeaderText="ShipCountry" Width="90" EditType="DropdownEdit" />
</Columns>
<EditSettings AllowEditing="True" AllowAdding="True" AllowDeleting="True" EditMode="Dialog"></EditSettings>
<ToolbarSettings ShowToolbar="True" ToolbarItems="add,edit,delete,update,cancel"></ToolbarSettings>
</ej:Grid>
<script>
function complete(args) {
if (args.requestType == "beginedit" || args.requestType == "add") {
$("#Fecha1").ejDatePicker();
} |
<ej:Grid ID="OrdersGrid" runat="server" AllowPaging="True">
<EditSettings AllowEditing="true" AllowAdding="true" AllowDeleting="true" EditMode="DialogTemplate" DialogEditorTemplateID="#template"></EditSettings>
<ClientSideEvents ActionComplete="complete" />
<Columns>
<ej:Column Field="OrderID" HeaderText="Order ID" IsPrimaryKey="true" TextAlign="Right" Width="90">
</ej:Column>
. . .
</Columns>
<ToolbarSettings ShowToolbar="True" ToolbarItems="add,edit,delete,update,cancel"></ToolbarSettings>
</ej:Grid>
<script type="text/template" id="template">
<b>Order Details</b>
<table cellspacing="10">
<tr>
</tr>
<td style="text-align: right;">Fetcha1
</td>
<td style="text-align: left">
<input id="OrderDate" name="OrderDate" class="e-field e-ejinputtext valid"
style="width: 116px; height: 28px" value="{{:OrderDate}}" />
</td>
</tr>
</table>
</script>
<script type="text/javascript">
function complete(args) {
if ((args.requestType == "beginedit" || args.requestType == "add")) {
$("#OrderDate").ejDatePicker();
$("#Freight").ejNumericTextbox();
$("#ShipName").ejDropDownList();
}
}
</script> |
|
<ej:Grid ID="OrdersGrid" runat="server" AllowPaging="True">
<SelectionSettings SelectionMode="row"/>
<Columns>
<ej:Column Field="Crtd_DateTime">
</ej:Column>
. . .
</Columns>
<ClientSideEvents ActionBegin="begin" BeforePrint="beforePrint" ActionComplete="complete" />
</ej:Grid> |