public ActionResult EditActivity(EditActivity model)
{
var activity = _uow.Activities.GetById(model.ActivityId);
activity.Phone = model.Phone;
activity.Fax = model.Fax;
activity.LastUpdateDate = DateTime.Now;
activity.LastUpdatedBy = _sessionHandler.UserId;
if (ModelState.IsValid)
{
try
{
_uow.Activities.Update(activity);
_uow.Commit();
TempData["SaveResultMessage"] = $"Changes to Activity : {activity.ActivityName} have been saved";
}
catch
{
ModelState.AddModelError("Save", "Error occurred on save.");
}
return RedirectToAction("Index", "DepartmentActivity", new
{
id = activity.DepartmentId,
});
}
return View(model);We have this weird scenario where occasionally we get this, and a refresh and it may go away, its 99% not there and 1% of the time shows.
Happens in
Windows
DropDownList

Hi
I use a Kendo window and load the content through AJAX from a partial view.
The partial view contains Kendo controls such as DropDownList, ContextMenu, etc.
How can I remove all the controls (destroy all UI, events, etc.) inside the partial view when I close the Kendo window

Here's the definition of the two items that are linked by the CascadeFrom:
items.Add().Field(f => f.Country)
.ColSpan(1)
.Name("cmbCountry")
.Editor(e => e.ComboBox()
.AutoWidth(false)
.DataTextField("name")
.DataValueField("id")
.BindTo(@CountryModel.Countries)
.Placeholder("--- Select or Type Country"));
items.Add().Field(f => f.StateProvince)
.ColSpan(1)
.Name("cmbStatesProvinces")
.Editor(e => e.ComboBox()
.AutoWidth(false)
.AutoBind(false)
.Placeholder("--- Select State/Province ---")
.DataTextField("name")
.DataValueField("id")
.DataSource(dS => dS.Read(read => read.Action("GetStateList", "Address").Data("filterState")).ServerFiltering(true))
.CascadeFrom("cmbCountry")
@*.BindTo(@StatesProvinces.StateProvince)*@
);
Here's the AddressController.GetStateList:
This works for the first Country that is selected... afterwards - if the Country is changed, the GetStateList is not called again to refresh the related/CascadeFrom Combobox.

In my application II have a modal window that contains a date picker. If I move the window down then click the date picker button the window moves back to the top of the screen
Any ideas?
