Max height & width of PanelBar

15 posts, 0 answers
  1. Kenz
    Kenz avatar
    19 posts
    Member since:
    Apr 2011

    Posted 24 Jun 2011 Link to this post

    Hi , just need to set max height and width of panelbar.
    Please help me,how can i achieve this.

    Thanks,
  2. Dave Navarro
    Dave Navarro avatar
    150 posts
    Member since:
    Jul 2005

    Posted 28 Jun 2011 Link to this post

    Hello, I need to do something similar. Is it possible to set it to 100%? Please let me know and thanks! Dave
  3. DevCraft banner
  4. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 29 Jun 2011 Link to this post

    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
  5. Dave Navarro
    Dave Navarro avatar
    150 posts
    Member since:
    Jul 2005

    Posted 29 Jun 2011 Link to this post

    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
  6. Kenz
    Kenz avatar
    19 posts
    Member since:
    Apr 2011

    Posted 30 Jun 2011 Link to this post

    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..
  7. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 04 Jul 2011 Link to this post

    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
  8. Kenz
    Kenz avatar
    19 posts
    Member since:
    Apr 2011

    Posted 11 Jul 2011 Link to this post

    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..
  9. Joe
    Joe avatar
    1 posts
    Member since:
    Nov 2010

    Posted 11 Jul 2011 Link to this post

    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
  10. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 14 Jul 2011 Link to this post

    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!

  11. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 14 Jul 2011 Link to this post

    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!

  12. Prassin
    Prassin avatar
    87 posts
    Member since:
    Jun 2012

    Posted 07 Jun 2012 Link to this post

    how i should specify the limit of adding child items in my parent on RadTreeList .. please help me.. urgent so...
  13. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 07 Jun 2012 Link to this post

    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 >>

  14. Prassin
    Prassin avatar
    87 posts
    Member since:
    Jun 2012

    Posted 07 Jun 2012 Link to this post

    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
  15. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 07 Jun 2012 Link to this post

    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 >>

  16. Prassin
    Prassin avatar
    87 posts
    Member since:
    Jun 2012

    Posted 07 Jun 2012 Link to this post

    Maya,

    Am sorry .. am facing issue with asp.net programming....
Back to Top
DevCraft banner