@model GODATA.Models.UserInventory.UserInventory @using (Ajax.BeginForm("ManagePrincipleDealerInventory_AddPrincipleDealer", "UserInventory", new AjaxOptions { HttpMethod = "POST", OnBegin = "onBeginPrincipleDealer", OnSuccess = "onSuccessAddPrincipleDealer" })) { @Html.ValidationSummary(true) @Html.HiddenFor(model => model.StateName, new { id = "stateName" })
@Html.LabelFor(model => model.OrganizationId) * @Html.DropDownListFor(model => model.OrganizationId, (IEnumerable)ViewBag.OrganizationList, "-Select-", new { @id = "ddOrganization", @onchange = "LoadStateListRegionWise(id, 'ddState','ddCity')" }) @*@Html.DropDownListFor(model => model.OrganizationId, (IEnumerable)ViewBag.OrganizationList, "-Select-", new { @id = "ddOrganization"})*@ @Html.ValidationMessageFor(model => model.OrganizationId) Principal Dealer Name * @Html.EditorFor(model => model.FirstName) @Html.ValidationMessageFor(model => model.FirstName)
@Html.LabelFor(model => model.State) @* *@ @Html.DropDownListFor(model => model.State, (IEnumerable)ViewBag.StateList, "-Select-", new { @id = "ddState", @onchange = "LoadCityList()" }) @Html.ValidationMessageFor(model => model.State) @Html.LabelFor(model => model.City) @Html.ValidationMessageFor(model => model.City)
@Html.LabelFor(model => model.PrincipleDealerContactNo) @Html.EditorFor(model => model.PrincipleDealerContactNo) @Html.ValidationMessageFor(model => model.PrincipleDealerContactNo) @Html.LabelFor(model => model.UserName) * @Html.EditorFor(model => model.UserName) @Html.ValidationMessageFor(model => model.UserName)
@Html.LabelFor(model => model.Password) * @Html.EditorFor(model => model.Password) @Html.ValidationMessageFor(model => model.Password) @Html.LabelFor(model => model.ConfirmPassword) @Html.EditorFor(model => model.ConfirmPassword) @Html.ValidationMessageFor(model => model.ConfirmPassword)
@Html.LabelFor(model => model.ChildDealerList) @(Html.Kendo().MultiSelectFor(model => model.ChildDealerList) .Name("ChildDealerList").Placeholder("-Select-").Filter("contains") .BindTo(new SelectList(ViewBag.DealerList, "Value", "Text")) ) @Html.ValidationMessageFor(model => model.ChildDealerList)

}