Dynamically add and select ribbon bar tab problem

4 posts, 0 answers
  1. Myth
    Myth avatar
    54 posts
    Member since:
    Jan 2010

    Posted 27 Jan 2010 Link to this post

    I am building an MDI application, in which i want to add tabs specific to the active mdi window to the ribbonbar.
    I got this working by capturing the window's activated event. When a window is activated it removes the tabs associated with the previous active window, and adds new tabs which are associated with the new window. After the new tab(s) are added I activate one by using the tab.IsSelected property.

    This works, however for some reason the title of the tab isn't highlighted if i switch between MDI windows.
    For example, I open a window which lists orders for example. The associated tab gets added, selected, and is properly highlighted. If I then click on an order, it opens a detail window. The detail window gets activated, so the tab associated with the "order list" window gets removed, and a new tab gets added. Again, the tab is properly added, selected and highlighted. If i now select the "order list" window again, the "order detail" tab gets removed, the "order list" tab is added, and gets selected. However, for some reason it doesn't highlight the tab title.

    Any ideas what might be causing this peculiar behaviour? As far as i know i'm not capturing "lost focus" events which might cause problems.
  2. Deyan
    Admin
    Deyan avatar
    2038 posts

    Posted 01 Feb 2010 Link to this post

    Hello Myth,

    Thanks for contacting us. In order to properly investigate the case and see what actually does not work as expected, I would like to ask you to prepare a sample Windows Forms application that uses our controls and manages to reproduce the case.

    Thanks for your time. I look forward to receiving the requested details.

    Best wishes,
    Deyan
    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. Myth
    Myth avatar
    54 posts
    Member since:
    Jan 2010

    Posted 01 Feb 2010 Link to this post

    In order to be able to upload the project i have made a bug report. The ticket is 277963. Explanations on how to replicated the bug are in the report description.
  5. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 04 Feb 2010 Link to this post

    Hello Myth,

    Please find the answer to your question in the support ticket that you have opened.

    Sincerely yours,
    Nikolay
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
Back to Top