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

5 posts, 3 answers
  1. Dorian
    Dorian avatar
    21 posts
    Member since:
    Nov 2013

    Posted 21 Jul 2014 Link to this post

    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
  2. Answer
    Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 23 Jul 2014 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Dorian
    Dorian avatar
    21 posts
    Member since:
    Nov 2013

    Posted 23 Jul 2014 in reply to Kiril Nikolov Link to this post

    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.
  5. Answer
    Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 23 Jul 2014 Link to this post

    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!
     
  6. Answer
    Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 30 Jul 2014 Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready