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

Max height & width of PanelBar

14 Answers 274 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Kenz
Top achievements
Rank 1
Kenz asked on 24 Jun 2011, 12:57 PM
Hi , just need to set max height and width of panelbar.
Please help me,how can i achieve this.

Thanks,

14 Answers, 1 is accepted

Sort by
0
Dave Navarro
Top achievements
Rank 2
answered on 28 Jun 2011, 08:19 PM
Hello, I need to do something similar. Is it possible to set it to 100%? Please let me know and thanks! Dave
0
Petar Mladenov
Telerik team
answered on 29 Jun 2011, 04:13 PM
Hi Dave Navarro and Kazim Apanoglu,

By default the MaxHeight and MaxWidth of the RadPanelBar are set to Infinity. Could you please elaborate more on your situations so that we would be better able to assist you?

Greetings,
Petar Mladenov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Dave Navarro
Top achievements
Rank 2
answered on 29 Jun 2011, 05:26 PM
Hello,

I'm using my panelbar control in a sliding pane that the user could resize so I'd like the width to be dynamic. I would also like the height of the panelbar to be the height of the pane it's in.

On another note, I'd also like the bars to always sit at the bottom of the panelbar control. So, if I have two or more bars, bar one is at the top by default because I'll have it 'selected' and bar two through n will be sitting at the bottom of the pane. Right now I have to manually set the height. That isn't dynamic and of course doesn't work when the user resizes their browser.

Thanks again for your help!

~ Dave
0
Kenz
Top achievements
Rank 1
answered on 30 Jun 2011, 03:46 PM
hi,
i want to limit the size of panel's expandability.
for example : 300 pixels for width,450 pixels for height..
so users can't expand beyond that limit..


thanks..
0
Tina Stancheva
Telerik team
answered on 04 Jul 2011, 04:22 PM
Hello guys,

@Dave - Setting the RadPanelBar VerticalAlignement and HorizontalAlignment properties to Stretch should allow you to implement your scenario. I attached a sample project to illustrate this suggestion. Let me know if it works for you?

@Kenz - You can set the MaxWidth and MaxHeight properties of the RadPanelBar control to limit the size of the control. Give it a try and let us know how it goes.

Greetings,
Tina Stancheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Kenz
Top achievements
Rank 1
answered on 11 Jul 2011, 11:07 AM
hi again,
sorry but i've already tried maxheight and maxwidth properties..They don't work actually.
When u undock panel and resize it,that does not limit the panel's size..
Is there another way to solve this ?
thanks..
0
Joe
Top achievements
Rank 1
answered on 11 Jul 2011, 11:47 PM
I too have noted this issue. The max height does not work in the RadPanelBar. Alternatively, I have set the max height in the RadPanelBarItem for now as a workaround. Ideally, I would like to be able to have all my RadPanelBarItems have equal heights based on the height of the RadPanelBar. Is this possible?

Further note, after playing around with the max height in the RadPanelBarItem, I am noticing a performance issue that I previously did not have when I did not use a RadPanelBar.
Specifically, I have 4 RadPanelBarItems. The first 3 contain RadGridViews, the last one contains a RadTreeView. The grid can contain as many as 200 hundred rows each. The tree contains upto 3000 parent nodes (and on avg 5 child nodes, the max child nodes can be 200).
It looks like the virtualization is not working properly on either the radgridview or the radtreeview, because when I take these grids/tree out of the RadPanelBar and simple put them into a Grid w/ 4 rows, I have no performance issues. But while using the RadPanelBar control, the loading time is definitely noticeable and the UI is frozen. Not sure if this is related to the height issue that I have noticed.

Thx
0
Petar Mladenov
Telerik team
answered on 14 Jul 2011, 12:02 PM
Hello kazim and joe,

@Kazim
I am unable to reproduce such issue in the RadPanelBar inside RadPane in RadDocking. Could you please examine my test project and let me know if I am missing something. You can float the "Server Explorer" Pane , resize it and see that the MaxHeight property works as expected.
Thank you for your cooperation

All the best,
Petar Mladenov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Petar Mladenov
Telerik team
answered on 14 Jul 2011, 12:56 PM
Hello Joe and Kazim,

@Joe
Implementing an equal Height / Maxheight  of all RadPanelBarItems depending on the Height/MaxHeight of the RadPanelBar cannot be implemented easily, unless you create them in code behind and perform calculations.
Placing a RadTreeView directly in a RadPanelBarItem won't be enough for the Virtualization to work. You have to place it in container that will limited Hight, for example like so:
<telerik:RadPanelBar >
           <telerik:RadPanelBarItem Header="TreeBar" >
               <Grid Height="400" >
                   <telerik:RadTreeView x:Name="treeView"
                                        IsVirtualizing="True"
                                        ItemPrepared="treeView_ItemPrepared"
                                        ItemTemplate="{StaticResource itemtemplate}" />
               </Grid>
           </telerik:RadPanelBarItem>
       </telerik:RadPanelBar>
You can examine the attached project and see(printed in output) that only 15-20 Items are prepared when using a Limited container. Please let us know if you need further assistance.


Best wishes, Petar Mladenov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Prassin
Top achievements
Rank 1
answered on 07 Jun 2012, 08:15 AM
how i should specify the limit of adding child items in my parent on RadTreeList .. please help me.. urgent so...
0
Maya
Telerik team
answered on 07 Jun 2012, 12:04 PM
Hello Prassin,

Could you clarify a bit what is the exact scenario that you want to achieve ? Do you want to be able to insert only a specify number of child items for each parent ? If so, why not handling AddingNewDataItem event ? 

Kind regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Prassin
Top achievements
Rank 1
answered on 07 Jun 2012, 12:11 PM
Dear Maya..
Thanks for your replay...


I will explain my requirements..

i need to add only 6 child items inside the parent tree.. if anyone gonna add more than 6 items inside the parent then need to show an error message... this is the requirement i need to done...

Regards,

Prassin
0
Maya
Telerik team
answered on 07 Jun 2012, 12:24 PM
Hi Prassin,

In this case, as mentioned previously, you can handle AddingNewDataItem event and validate whether you can insert new child item or not. 

Greetings,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Prassin
Top achievements
Rank 1
answered on 07 Jun 2012, 12:26 PM
Maya,

Am sorry .. am facing issue with asp.net programming....
Tags
PanelBar
Asked by
Kenz
Top achievements
Rank 1
Answers by
Dave Navarro
Top achievements
Rank 2
Petar Mladenov
Telerik team
Kenz
Top achievements
Rank 1
Tina Stancheva
Telerik team
Joe
Top achievements
Rank 1
Prassin
Top achievements
Rank 1
Maya
Telerik team
Share this question
or