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

Treelist popup editor does not work after setDatasource command

1 Answer 79 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Bruno
Top achievements
Rank 1
Bruno asked on 19 Nov 2018, 01:41 PM

on the first treelist load, the component works as expected. however when updating the datasource "treeList.setDataSource (dsnew);" the update or insert of a new item in the treeview does not work. the popup opens, and I can fill in the fields normally, but after clicking the Update button, the popup closes as if I had sent the form information to my route, but it does not send anything. just close the popup, has anyone had this problem, or do you have any idea what might be happening?

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 22 Nov 2018, 09:57 AM
Hi Bruno,

When using setDataSource, you are completely replacing the DataSource instance, so to keep the widget editing capabilities, you need to add the full transport and schema.model configuration that you use in the original DataSource.

Could you confirm that the dsnew instance has a properly configured Update/Create methods and a model definition to match the original DataSource? If you are not sure, please show the original DataSource and the one you assign dynamically.

Regards,
Tsvetina
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
Bruno
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or