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

RadGalleryElement without RibbonBar

5 Answers 78 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Juergen Holzer
Top achievements
Rank 2
Juergen Holzer asked on 10 Sep 2010, 08:22 AM
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

5 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 17 Sep 2010, 04:45 PM
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
0
Juergen Holzer
Top achievements
Rank 2
answered on 20 Sep 2010, 09:41 AM
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
0
Nikolay
Telerik team
answered on 27 Sep 2010, 09:18 AM
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
0
Juergen Holzer
Top achievements
Rank 2
answered on 27 Sep 2010, 10:53 PM
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
0
Accepted
Nikolay
Telerik team
answered on 30 Sep 2010, 05:34 PM
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
Tags
RibbonBar
Asked by
Juergen Holzer
Top achievements
Rank 2
Answers by
Stefan
Telerik team
Juergen Holzer
Top achievements
Rank 2
Nikolay
Telerik team
Share this question
or