RadGalleryElement without RibbonBar

6 posts, 1 answers
  1. Juergen Holzer
    Juergen Holzer avatar
    32 posts
    Member since:
    Mar 2010

    Posted 10 Sep 2010 Link to this post

    Hello!

    I want to use the RadGalleryElement on a Standard RadForm. Does anybody know how to extract/use the RadGalleryElement without a RibbonBar? Or maybe the RibbonBarGroup without a RibbonBar?

    Thanks for any help!
    Regards
    Juergen
  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 17 Sep 2010 Link to this post

    Hi Juergen Holzer,

    Thank you for contacting us. 

    The usage of the elements you concern outside the controls that they are designed for is not s possible scenario. If you want to share what exactly you are trying to achieve, I may be able to suggest a RadControl that can suit your needs.

    All the best,
    Stefan
    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Juergen Holzer
    Juergen Holzer avatar
    32 posts
    Member since:
    Mar 2010

    Posted 20 Sep 2010 Link to this post

    Hello Stefan!

    Thank you for your answer!

    I'm using a Standard Windows Form FlowLayoutPanel. This is fitting perfectly my needs. (Adding Controls add runtime, side-by-side and only vertical scrolling). But the Scrollbar doesn't fit to the overall control look. Maybe you can tell me an alternative RadControl to FlowLayoutPanel.

    Thank you!
    Kind Regards
    Juergen
  5. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 27 Sep 2010 Link to this post

    Hi Juergen,

    Thank you for getting back to us.

    For this scenario you can put your FlowLayoutPanel instance in a RadScrollablePanel. This will allow you to get the flowlayout behavior in a combination with the RadControls look and feel.

    I am attaching a sample project which demonstrates the implementation. I hope this helps. If you have additional questions, feel free to contact us.

    Best wishes,
    Nikolay
    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
  6. Juergen Holzer
    Juergen Holzer avatar
    32 posts
    Member since:
    Mar 2010

    Posted 27 Sep 2010 Link to this post

    Hello Nikolay!

    Thanks for your perfect solution! It's working how I wanted.

    But maybe you can give me some background:

    1. Why do I have to use the Control_Added Event for resizing the flowlayoutpanel and not autosize? I know just setting autosize to true doesn't work, you have to set all anchors of the flowlayoutpanel, to get it growing. But no scrollbars are shown.
    2. Why setting autosize on the ScrollablePanel outside the designer?

    Thank you for your help so far!
    Kind regards
    Juergen
  7. Answer
    Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 30 Sep 2010 Link to this post

    Hello Juergen,

    The behavior described in p.1) comes from the standard .NET Windows Forms layouts. You can experience the same behavior if you place your FlowLayoutPanel in a standard Panel. This is why I am manually recalculating the size of the FlowLayoutPanel on each added control.

    I have set the AutoScroll of the RadScrollablePanel programmatically just for demonstration purposes. You can set it at design-time if you want to do so.

    Sincerely yours,
    Nikolay
    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
Back to Top
UI for WinForms is Visual Studio 2017 Ready