When we add new element, we can't see it in model, untill refresh

2 posts, 0 answers
  1. ILYA
    ILYA avatar
    9 posts
    Member since:
    Jan 2019

    Posted 02 Apr 2019 Link to this post

    We use editing treelist, when we add new element, we can't see it in model, untill refresh. It disappear after we press "Update")

    a part of TTreeListEditController.java:

    @RequestMapping(value = "/TTreeListEdit/create", method = RequestMethod.POST)
    public @ResponseBody
    TTreeListEdit create(@RequestBody Map<String, Object> model) throws ParseException {
    TTreeListEdit target = new TTreeListEdit();

    target.setIdObjectType((String) model.get("idObjectType"));
    target.setDescription((String) model.get("description"));
    target.setObject1C((String) model.get("object1C"));
    target.setParentID((String) model.get("parentID"));


    return target;

    1.png - before we press "Update"

    2.png - after we press "Update"

    3.png - after we refresh

  2. Martin
    Martin avatar
    833 posts

    Posted 04 Apr 2019 Link to this post


    We do not replicate the reported problem on our side. You can reference this demo, that I used for local testing:


    The only difference I noticed with your code is that our demo uses .saveOrUpdate(target) while your code utilizes .insert(target)

    On a side note - the version specified in this report is 2019.1.327 which is an Internal Build that we ship every week and that is basically not supported. I would suggest that you try the latest officially supported release which is 2019.1.220 and see whether it makes any difference.

    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top