This is a migrated thread and some comments may be shown as answers.

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

1 Answer 99 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
ILYA
Top achievements
Rank 1
ILYA asked on 02 Apr 2019, 04:07 PM

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"));

product.insert(target);

return target;
}

1.png - before we press "Update"

2.png - after we press "Update"

3.png - after we refresh

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 04 Apr 2019, 02:16 PM
Hi,

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

https://demos.telerik.com/jsp-ui/treelist/editing

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.

Regards,
Martin
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.
Tags
TreeList
Asked by
ILYA
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or