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

Resizing objects in panelbar cause panel height issues

4 Answers 145 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Guru
Top achievements
Rank 2
Guru asked on 15 May 2012, 09:32 PM
I have found that if you put a paginated grid with auto height in the panelbar, when you change pages and the grid height changes, the panelbar doesn't keep up with the grid size changes. I suppose I could maybe detect when the grid page changes and somehow refresh the panel its in to fit maybe?

4 Answers, 1 is accepted

Sort by
0
Accepted
Kamen Bundev
Telerik team
answered on 17 May 2012, 10:18 AM
Hello Zack,

This looks like a bug - however it only happens if the content area is initially opened. I'm noting it for fixing, meanwhile you can create the PanelBar closed and open the item after init, like this:
$("#PanelBar").kendoPanelBar().data("kendoPanelBar").expand(">li:first");

I'm updating your points for the find.

Regards,
Kamen Bundev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Guru
Top achievements
Rank 2
answered on 24 May 2012, 04:30 PM
Yes that does the trick it seems, thank you!

At first I didn't realize you meant simply no longer use "k-state-active" class in the ul list html and just expand as needed by user or js
0
Guru
Top achievements
Rank 2
answered on 15 Jun 2012, 08:04 PM
Sorry after more testing (not live use luckily :) I have found it is still happening for basically anytime a panel grows and shrinks because of innerhtml changes. I get mixed results so I can't give you an example that happens 100% the same but it happens a lot and in all browsers. For the time being to be able to release the program we reverted to the jqueryui accordian, which works 100% of the time with our same codebase unchanged.
0
Chris
Top achievements
Rank 1
answered on 25 Sep 2012, 01:59 PM
After digging around and digging around, I can't figure out how to open the panel bar with all the items collapsed.

Can you please let me know because I'm experiencing the same bug that Zack has and I'm hoping that will fix it in my case, otherwise I may need to change to jQuery UI for this too, which is not my preference...
Tags
PanelBar
Asked by
Guru
Top achievements
Rank 2
Answers by
Kamen Bundev
Telerik team
Guru
Top achievements
Rank 2
Chris
Top achievements
Rank 1
Share this question
or