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

[BUG?] Context Menu and removal of targets from DOM

4 Answers 249 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Dorian
Top achievements
Rank 2
Dorian asked on 21 Jul 2014, 01:18 PM
http://jsbin.com/gaketa/2/

The Kendo Context Menu stops working if you remove one of it's targets from DOM.

In the example to which I linked in the beginning of this post I bound a kendoContextMenu to a grid. Upon opening of the grid I get the dataItem from the grid dataSource which I can delete or display. If I display data, all works well with no hiccups and the contextMenu will open again after it. But when I delete a row from the grid it simply closes up and refuses to popup again. I've done a bit of digging and discovered that the contextMenu does not refresh it's target list from which I reckon the problem I have stems from.

As always thank you for your time and looking forward to any assistance to this predicament.

With regards,
Dorian

4 Answers, 1 is accepted

Sort by
0
Accepted
Kiril Nikolov
Telerik team
answered on 23 Jul 2014, 07:05 AM
Hello Dorian,

It looks like a bug in the ContextMenu. I have logged it in out open source repository and you can keep track on the progress towards fixing it on the following link:

https://github.com/telerik/kendo-ui-core/issues/188

Thank you very much for bringing this to our attention.

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Dorian
Top achievements
Rank 2
answered on 23 Jul 2014, 08:11 AM
Thank you for your reply. 
I somewhat resolved the issue with destroying and then re-initializing the widget. But that won't solve the problem with the grid when you page it or when you use virtual scrolling or any other widget that changes it's contents.
0
Accepted
Kiril Nikolov
Telerik team
answered on 23 Jul 2014, 11:03 AM
Hi Dorian,

Reinitializing the widget will work as it will be initialized with the new targets, however this is not an acceptable behavior. I am sure a fix will be posted soon, so keep track on the progress of the GitHub issue that I linked in the previous response, so you will know when it is resolved.

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Accepted
Kiril Nikolov
Telerik team
answered on 30 Jul 2014, 07:42 AM
Hello Dorian,

I just want to let you know that a response for the issue has been added in the Issues section of the Kendo UI Core GitHub repository. Please check it out and if you have any questions, do not hesitate to contact us:

https://github.com/telerik/kendo-ui-core/issues/188

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