<e-datamanager json="ViewBag.datasource"
update-url="/DiagnosisInformation/SaveDiagnosis"
insert-url="/DiagnosisInformation/SaveDiagnosis"
remove-url="/DiagnosisInformation/SaveDiagnosis"
adaptor="remoteSaveAdaptor" />
<e-edit-settings allow-adding="true" allow-editing="true" allow-deleting="true" edit-mode="@(EditMode.InlineFormTemplate)" inline-form-template-id="#templateSearchDiagnosis" />
<e-toolbar-settings show-toolbar="true" toolbar-items="@(new List<string>() {"edit","update","cancel"})">e-toolbar-settings>
<e-columns>
<e-column header-text="ICD 10" field="DiagnosisPartCode"
is-primary-key="false"
is-identity="false"
disable="true"
value="{{:DiagnosisPartCode}}"
width=20 />
<e-column header-text="Diagnosis
Name"
field="Text"
is-primary-key="true"
is-identity="true"
disable="true"
value="{{:Text}}"
width=70 />
e-columns>
ej-grid>
Thanks for the support
<script type="text/template" id="templateSearchDiagnosis">
<table>
<tr>
<td>
Diagnosis Name
</td>
<td>
<input id="Text" name="Text" value="{{: Text}}" disabled="disabled" class="e-field e-ejinputtext valid e-disable"
style="width: 116px; height: 28px" />
</td>
<td style="color:red">
Natural History of Illness
</td>
<td>
@Html.ValidationSummary()
@Html.DropDownListFor(model => model.NaturalId, ViewBag.lNatural as SelectList, "Select", new { @value = "DiagnosisTypeDesc", htmlAttributes = new { @class = "form-control" } , style = "width: 100%;height: 14px;display: block;font-size: 11px;line-height: 1.428571429;color: #555;vertical-align: middle;background-color: #fff;border: 1px solid #ccc;" })
</td>
</tr>
</table>
</script> |
public class EditableOrder
{
[Required( ErrorMessage = "Selection is a MUST" )]
public string NaturalId
{
get;
set;
}
. . .
} |