Completed
Last Updated: 20 May 2021 15:55 by ADMIN
Release 2021.R2.SP.next
Eric
Created on: 30 Mar 2021 09:57
Category: TreeList
Type: Bug Report
0
Deleting Treelist item when treelist is imbedded in a Grid causes the deletion to not work correctly.

Hello,


We have a grid of tasks and each row has a detail's pane (hierarchy) that shows, when expanded, a tree list of sub-tasks.

If you attempt to delete a tree list node (not the last) it will delete the node correctly, but will trigger the grid's to prompt the user to make sure the item should be deleted or not (which is NOT normal). But when this is shown, it is already too late to Cancel has the tree list has already deleted the item. Users don't understand why they are given a chance to prevent the deletion, but it does not work.

So in short, we want the tree list, when the users deletes a node, to not trigger (i.e. to prevent) the grid's item deletion.

Here is a dojo that shows what happens:

https://dojo.telerik.com/APaXoRuR

Steps to reproduce the bug:
  1. Load the Dojo and open the Network tab of the developer toolbar
  2. Expand one of grid's detail row
  3. Attempt to delete one of the tree list items (except the last item)
  4. Note the dialog popup which is not normally shown for a treelist
  5. Note the Item is already deleted anyway... before the popup is shown...
  6. Click Cancel on the dialog
  7. The item disappears even if you did cancel

Please let me know if you need more information,


Regards,

Eric.

Eric Boulé, B.Eng.
Solution Architect
Centre d’Essais Techniques de la Qualité (CETQ) | Quality Engineering Test Establishment (QETE)
Department of National Defence / Government of Canada
Eric.Boule@forces.gc.ca

1 comment
ADMIN
Tsvetomir
Posted on: 31 Mar 2021 09:21

Hi Eric,

Thank you for taking the time to share your observations and to provide a project. Indeed, this is a bug on our side and the grid should not be attaching the click event handler to any of its embedded widgets.

As a temporary workaround, I suggest that you detach the click event and attach a custom event handler where the inner grid will not be targeted.

https://dojo.telerik.com/uXofeGoQ

I am converting the current support thread to a Bug Report.

Let me know if there is anything else I can help with.

 

Kind regards,
Tsvetomir
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.