-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TreeList drag and drop functionality does not work when the Ids are stings(guids). #3142
Comments
The described behavior is expexted. The treelist model expect a number for the parentId field and if such is not provided the widget will not be able to correctly set the parent id when drop is performed. In cases where string are used as ids our logic will try to parse them, that is why the scenario where the ids are number strings works. In order to avoid inconsistencies I suggest using numbers as ids. |
I don't seem to find a mention of this in the documentation. Moreover, I found a forum post that literally says:
|
Indeed the TreeList should work fine when the Id and ParendId are strings however these strings should contain numbers so they can be parsed. Please accept our apologies for the misleading post. As for the documentation we will soon update it in order to avoid such confusion in future. |
Is this still the expected? I have ids with guid and works fine to me, should I be worried? |
We have not applied any changes to the logic in regards of the above scenario. That said I suggest using numbers as ids. |
Is there a particular reason the |
Bug report
TreeList drag and drop functionality does not work when the Ids are stings (guids).
Reproduction of the problem
The issue can be observed in the following Dojo: http://dojo.telerik.com/eQuJA
Environment
The text was updated successfully, but these errors were encountered: