RadPanelBarItem content width

4 posts, 0 answers
  1. Mike
    Mike avatar
    26 posts
    Member since:
    Jun 2008

    Posted 14 Apr 2009 Link to this post

    Hi there

    I'm looking for a way to automatically layout the content of a RadPanelBarItem. The content should use the whole available width. My approach was to try it the simple way:

    <telerik:RadPanelBar> 
        <telerik:RadPanelBarItem> 
            <telerik:RadPanelBarItem.Header> 
                <TextBlock Text="XXX" FontSize="12" FontWeight="Bold" Margin="10"/> 
            </telerik:RadPanelBarItem.Header> 
            <Grid Background="Yellow" Width="Auto" Height="Auto"/> 
        </telerik:RadPanelBarItem> 
    </telerik:RadPanelBar> 

    but this seems not to work. is there a way to do this, or do I always have to set fixed width and height?

    Greez Mike
  2. Tihomir Petkov
    Admin
    Tihomir Petkov avatar
    576 posts

    Posted 15 Apr 2009 Link to this post

    Hello Mike,

    It turned out you hit a bug in RadPanelBar's layout mechanism. With the current version of the control you will have to manually set an item's content size if you want it to fill all of the available space. I scheduled the bug for fixing and updated your Telerik points. Thank you for your feedback, we appreciate your help.

    Regards,
    Tihomir Petkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Mike
    Mike avatar
    26 posts
    Member since:
    Jun 2008

    Posted 15 Apr 2009 Link to this post

    OK thank you for the information Tihomir. For the moment I can live with the workaround to set the size manually. But i'm looking forward to a fixed version anyway.

    Greetings
    Mike
  5. Tihomir Petkov
    Admin
    Tihomir Petkov avatar
    576 posts

    Posted 17 Apr 2009 Link to this post

    Hello Mike,

    The fix will probably be ready towards the end of next week. In case you need it urgently, send me an email next week @ tihomir.petkov@telerik.com and I will email you back the hotfix when it is ready.

    Sincerely yours,
    Tihomir Petkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top