14 Answers, 1 is accepted
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
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
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..
@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
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..
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
@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!
@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
>
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!
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 ?
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
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
In this case, as mentioned previously, you can handle AddingNewDataItem event and validate whether you can insert new child item or not.
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Am sorry .. am facing issue with asp.net programming....