Refresh after update

2 posts, 0 answers
  1. Mateusz
    Mateusz avatar
    13 posts
    Member since:
    Jan 2015

    Posted 19 Aug 2015 Link to this post

    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? :)

  2. Genady Sergeev
    Genady Sergeev avatar
    1595 posts

    Posted 20 Aug 2015 Link to this post


    You may want to call refresh on the treelist object, to repaint the UI using the new dataitems. Example:


    Genady Sergeev
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET AJAX banner
Back to Top