Content disappearing

2 posts, 0 answers
  1. Carla
    Carla avatar
    9 posts
    Member since:
    Apr 2016

    Posted 14 Jan 2019 Link to this post


    I am generating combo boxes in my panelbar items programatically. I have 9 panelbar items in my panelbar, each with a title and two combo boxes.

    I've been noticing that some of the combo boxes do not display any value and the down arrow is not there either. When I open and close a certain panelbar item, it causes the values to appear in another item's combo box. I know I'm providing values to display so I'm not sure what is going on.

    When I jump to the corresponding panelbar item from another page, the combobox has the values, but then when I close it and open again, the values are gone.

    Also, I see this problem only in some panelbar items and they are always the same ones.

    Please help me identify the problem here.




  2. Dimiter Topalov
    Dimiter Topalov avatar
    1263 posts

    Posted 16 Jan 2019 Link to this post

    Hello Carla,

    To render the content of all PanelBar items, and keep it in the DOM when the items are collapsed, you can set the keepItemContent option to true. This should help avoiding the described issues. The default behavior of the PanelBar is to destroy the content of the collapsed items which may cause further issues if some other components are relying on the underlying DOM elements.

    I hope this helps, but if the issue persists, please send us an isolated runnable project, similar to the ones in our online demos (you can reduce PanelBar items to 2-3 and create the ComboBoxes with some simple dummy data for simplicity), where the described issues and the exact mechanics for generating the ComboBoxes programmatically can be observed, so we can inspect it further, and try to suggest a solution that is most suitable to the specific use case.

    Thank you in advance.

    Dimiter Topalov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top