Call another form using the radPanorama

2 posts, 0 answers
  1. yosep
    yosep avatar
    2 posts
    Member since:
    Jun 2011

    Posted 02 Aug 2013 Link to this post

    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
  2. George
    Admin
    George avatar
    500 posts

    Posted 07 Aug 2013 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top