@(Html.EJ().Grid<object>("FlatGrid")
-----------------------------------
.EditSettings(edit => { edit.AllowAdding().AllowDeleting().AllowEditing().EditMode(EditMode.InlineFormTemplate).InlineFormTemplateID("#template"); })
.AllowPaging()
----------------------------------------
-------------------------------------
)
<script type="text/javascript">
function dropdown(args) {
$("#ShipCity").val("Lyon");
$("#EmployeeID").ejDropDownList("setSelectedValue", 7);
}
</script>
<script id="template" type="text/template">
<b>Order Details</b>
<table cellspacing="10">
------------------------------------
<td style="text-align: right;">
Ship Country
</td>
<td style="text-align: left">
<select id="ShipCountry" name="ShipCountry" onchange="dropdown()">
<option value="Argentina">Argentina</option>
<option value="Austria">Austria</option>
<option value="Belgium">Belgium</option>
<option value="Brazil">Brazil</option>
<option value="Canada">Canada</option>
</select>
</td>
</tr>
-------------------------
</table>
</script> |
function dropdown(args) {
$("#ShipCity").val("Lyon");
$("#EmployeeID").ejDropDownList("setSelectedValue", 7);
} |