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

Dynamically add and select ribbon bar tab problem

3 Answers 127 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Myth
Top achievements
Rank 1
Myth asked on 27 Jan 2010, 10:09 AM
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.

3 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 01 Feb 2010, 08:24 AM
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.
0
Myth
Top achievements
Rank 1
answered on 01 Feb 2010, 10:01 AM
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.
0
Nikolay
Telerik team
answered on 04 Feb 2010, 07:57 AM
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.
Tags
RibbonBar
Asked by
Myth
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Myth
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or