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

Uids in HTML does not match Uids in datasource

1 Answer 13 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Wolfgang
Top achievements
Rank 1
Wolfgang asked on 16 Dec 2013, 01:52 PM
Hi,


we encountered a very strange issue. We update inner nodes of a tree view using loaded(false) and load() as suggested in another thread. However, after loading the nodes, the uids of the datasource and those present in the HTML does not match any more for the reloaded items.  The method treeView.findByUid(uid) does not find any item and the requested uid is in fact not present in the HTML. Is there any chance to update not only the model but also the HTML or to use an value present on the items that are loaded from server as uid and thus to have stables uids? 


Best regars & many thanks


1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 18 Dec 2013, 11:42 AM
Hello Wolfgang,

I am not sure if I understand correctly by which uids you are searching for the nodes. Could you provide the code that you are using? The uid value cannot be assigned from the server and it is generated internally when creating a new observable object but the uids in the data should always match the elements uids.

Regards,
Daniel
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
TreeView
Asked by
Wolfgang
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or