<input type="text" id="StartDate" value="{{:StartDate}}" class="e-field e-ejinputtext" />
|
Default.aspx
<ej:Grid ID="EmpGrid" runat="server" ClientIDMode="Static" AllowPaging="True" >
<EditSettings AllowEditing="true" AllowAdding="true" AllowDeleting="true" EditMode="InlineFormTemplate" InlineFormTemplateID="#template" ></EditSettings>
<ClientSideEvents ActionComplete ="complete" />
<
<ej:Column Field="OrderDate" EditType="DateTimePicker" Format="{0:dd.MM.yyyy hh:mm}"/>
</Columns>
</ej:Grid>
<script id="template" type="text/template">
<table cellspacing="10">
<td>
<input id="OrderDate" name="OrderDate" value="{{:OrderDate}}" class="e-field e-ejinputtext" style="width: 116px; height: 28px" />
</td>
</tr>
</table>
</script>
<script>
function complete(args) {
…
$("#OrderDate").ejDateTimePicker({
dateTimeFormat: "dd.MM.yyyy hh:mm",
timePopupWidth: "150px",
width: '300px',
});
}
</script>
|