Hello
I have question how to refresh control after edit?
I tried:
- return all data after upadte but this doesn't work
public
JsonResult Update([DataSourceRequest] DataSourceRequest request, ProductCategoryViewModel category)
{
if
(ModelState.IsValid)
{
var services =
new
ProductCategoryServices(db);
services.Update(category, ModelState);
}
var result = db.ProductCategories.ToTreeDataSourceResult(request,
cat => cat.ProductCategoryId
, cat => cat.FKParentProductCategoryId
, cat => cat.ToProductCategoryViewModel(request)
);
return
Json(category, JsonRequestBehavior.AllowGet);
// return Json(new[] { category }.ToTreeDataSourceResult(request, ModelState));
}
- - also add some events like:
- requestEnd it is call only once
- complete added to update action in trasport but this work also only once and only if inside is alert function - event onSave on TreeList also doesn't work
PS. Stupid question but where is edit post option? :)