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

Call another form using the radPanorama

1 Answer 177 Views
Panorama
This is a migrated thread and some comments may be shown as answers.
yosep
Top achievements
Rank 1
yosep asked on 02 Aug 2013, 05:35 PM
Dear all members and administrators as well,

I've downloaded the trial edition of the new Telerik, I've browsed and tried some new function as well.

Well, the question is simple, I've run the example of the RadPanorama, and when I try to click the Controls Tile such as GridView etc, I couldn't figure out how to do that exactly and properly.

Maybe, the RadPanel could be the solution, however, there are will be some kind of lack of performances, etc.

Can anyone here explain how to show the other form at the same radPanorama. In this study case I want to call other forms. Simple.

Thank you very much for help in advance. GBU

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 07 Aug 2013, 09:40 AM
Hi Yosep,

Thank you for contacting us.

In our demo application we are not using actual forms to display the examples in the RadPanorama. Instead we are using RadPanel with UserControl inside and that UserControl plays the role of a form. Below is an example code:
RadDock dock = new RadDock();
dock.Dock =  DockStyle.Fill;
 
DockWindow window = new ToolWindow();
dock.DockWindow(window, DockPosition.Right);
 
RadPanel container = new RadPanel();
container.Dock = DockStyle.Fill;
 
UserControl control = new UserControl();
control.Dock =  DockStyle.Fill;
container.Controls.Add(control);
control.Controls.Add(dock);
 
this.radPanorama1.Controls.Add(container);

The UserControl is dynamically loaded and disposed on demand which eliminates the performance issues you are worried about.

A different approach would be to use RadDock in MDI mode. You can read more about MDI mode here: http://www.telerik.com/help/winforms/dock-mdi-mode-automatic-mdi-form-handling.html.

And finally you can simply add a form to the RadPanorama's Controls collection as follows:
var radForm = new RadForm();
radForm.BackColor = Color.Red;
radForm.TopLevel = false;
radForm.Show();
 
this.radPanorama1.Controls.Add(radForm);

I hope this information is helpful. If you need any further assistance, please let me know.
 
Regards,
George
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Panorama
Asked by
yosep
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or