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

Content disappearing

1 Answer 241 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Carla
Top achievements
Rank 1
Veteran
Carla asked on 15 Jan 2019, 12:20 AM

Hello,

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.

Thanks,

Carla

 

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 16 Jan 2019, 09:33 AM
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.

Regards,
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.
Tags
PanelBar
Asked by
Carla
Top achievements
Rank 1
Veteran
Answers by
Dimiter Topalov
Telerik team
Share this question
or