MDI merging RadToolbar & RadMenu

4 posts, 0 answers
  1. James Relyea
    James Relyea avatar
    13 posts
    Member since:
    Dec 2009

    Posted 10 Dec 2009 Link to this post

    I've seen some posts about merging toolbars. My impression is that it can be done, but not something that's currently built in. Am I correct? If it is built in, could someone point me to the necessary steps?

    I have this scenario: I have a MDI form that opens MDI child forms as document windows. Each MDI child has its own RADToolbar that I'd prefer to have merged with the MDI parent's RADToolbar like VS does.

    Thanks

    :)
    jr
  2. Nick
    Admin
    Nick avatar
    767 posts

    Posted 11 Dec 2009 Link to this post

    Hello James Relyea,

    Thank you for your interest in our controls for WinForms. Unfortunately MDI merge for toolbars is not currently implemented and it has not been scheduled for the next release.

    All the best,
    Nick
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. James Relyea
    James Relyea avatar
    13 posts
    Member since:
    Dec 2009

    Posted 13 Dec 2009 Link to this post

    I might've found a way to accomplish this. Time will tell though, but it only takes a few lines of code. The general logic looks like this:

    MDI Child forms: make a public property of a RADToolBar item or element
    MDI Parent with the RADDock set to autodiscover MDI Children: On the ActiveWindowChanged method, clear the items, declare a new form = the DockWindow.ActiveControl (this is where I'm not sure what will go awry with resource consumption yet), Then, on the MDI parent, add the items made available via the public property of the child form

    It's working so far for me, but I can see where it could be tricky to manage if a number of toolbar elements are used.

    If I run a SuspendLayout & resumelayout, the screen doesn't shift at all and the entire transition is silky smooth.

    :)
    jr
  5. Nick
    Admin
    Nick avatar
    767 posts

    Posted 14 Dec 2009 Link to this post

    Hello James Relyea,

    Thank you for feedback. I am glad that you find a solution for the case.

    Kind regards,
    Nick
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top