Skip to content
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

setDataSource method leads to not working clear/deselect button and expand functionality #6474

Closed
kendo-bot opened this issue Jul 5, 2021 · 1 comment
Assignees
Labels
Bug C: DropDownTree FP: Declined Sync status with associated Feedback Item jQuery SEV: High

Comments

@kendo-bot
Copy link
Contributor

Using setDataSource method on a working DropDownTree, with same initial settings leads to not working clea button and not expanding a collapsed node.

Dojo: https://dojo.telerik.com/uLUNudEJ

Steps (clear button):

  1. Open dojo and check that everything works correctly

  2. Click reload button (calls setDataSource)

  3. Clear all button does not work and cannot deselect the item from the tag's clear button.

Steps (expand):

  1. Open dojo and open popup to see everything expands as expected

  2. Click reload

  3. Open popup

  4. The last (initially collapsed) node cannot be expanded.

@kendo-bot kendo-bot added the FP: Pending Review Sync status with associated Feedback Item label Jul 5, 2021
@Iankodj Iankodj added FP: Unplanned Sync status with associated Feedback Item Bug C: DropDownTree jQuery SEV: High and removed FP: Pending Review Sync status with associated Feedback Item labels Jul 5, 2021
@veselints veselints self-assigned this Feb 1, 2022
@kendo-bot kendo-bot added FP: Planned Sync status with associated Feedback Item and removed FP: Unplanned Sync status with associated Feedback Item labels Feb 1, 2022
@kendo-bot kendo-bot added FP: In Development Sync status with associated Feedback Item and removed FP: Planned Sync status with associated Feedback Item labels Mar 7, 2022
@veselints
Copy link
Contributor

The issue in question is caused by the Dojo implementation and not by a bug in the DropDownTree widget:

  • The reference to the DropDownTree is not properly retrieved;
  • The setDataSource() requires a kendo.data.HierarchicalDataSource as a parameter to properly pass it to the widget:
$("#dropdowntree").data("kendoDropDownTree").setDataSource(new kendo.data.HierarchicalDataSource({ data: dataSource }));

Here is a properly working version of the Dojo sample:
https://dojo.telerik.com/uLUNudEJ/4

@kendo-bot kendo-bot added FP: Completed Sync status with associated Feedback Item and removed FP: In Development Sync status with associated Feedback Item labels Mar 7, 2022
@Dimitar-Goshev Dimitar-Goshev added FP: Declined Sync status with associated Feedback Item and removed FP: Completed Sync status with associated Feedback Item labels Mar 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug C: DropDownTree FP: Declined Sync status with associated Feedback Item jQuery SEV: High
Projects
None yet
Development

No branches or pull requests

4 participants