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

Problem with Contextual Tabs using MVVM and ItemTemplateSelector

3 Answers 40 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Rishabh
Top achievements
Rank 1
Rishabh asked on 11 Jun 2012, 08:00 AM
Hi,

I am facing a problem while using the RibbonView and populating it's items using MVVM.

The problem is specifically related to the Contextual tabs, and occurs only when using an ItemTemplateSelector to populate the RadRibbonButtons. The problem is that only a TextBlock is generated instead of a RadRibbonButton in the contextual tabs. The ItemTemplateSelector works fine with normal tabs but in the case of contextual tabs, the ItemTemplateSelector isn't even accessed and just a text block is generated instead. The problem goes away when I place a single ItemTemplate instead of using an ItemTemplateSelector.

I have posted regarding this in another thread in detail, with reference to a project attached from you guys that also has the same problem. Here is the link to that post:
http://www.telerik.com/community/forums/silverlight/ribbonview/radribbonview-prism-support-contextual.aspx#2137916

3 Answers, 1 is accepted

Sort by
0
Viktor Tsvetkov
Telerik team
answered on 13 Jun 2012, 07:27 AM
Hi Rishabh,

As I have mentioned in the other forum post the issue is logged under the name "RibbonView: ItemTemplateSelector not working for contextual tabs" and it is ready for tracking and voting.

Kind regards,
Viktor Tsvetkov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Ankita
Top achievements
Rank 1
answered on 04 Aug 2017, 09:33 AM

Hi, 

I am facing some UI problem with the contextual tabs having radRibbonTabs inside them.When I change my settings and the number of radRibbonTabs for a particular contextual tab changes, the alignment of the tabs changes. 

Posting a screenshot of the expected alignment and the discrepancy after the new ribbon tabs are adding discrepancy.

please help me to solve it.

 

 

0
Dilyan Traykov
Telerik team
answered on 09 Aug 2017, 09:07 AM
Hello Ankita,

I've managed to replicate the undesired behavior and have logged a new bug report in our feedback portal regarding it. You can subscribe to the item in order to get notified once the development team starts working on a fix. As a thank you for your help in finding this issue, I've awarded you with some Telerik points.

For the time being, in order to solve this discrepancy, you should call the RadRibbonView's OnApplyTemplate() method after adding the new tabs so that it is redrawn correctly.

I hope that you find such a workaround applicable.

Regards,
Dilyan Traykov
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
RibbonView and RibbonWindow
Asked by
Rishabh
Top achievements
Rank 1
Answers by
Viktor Tsvetkov
Telerik team
Ankita
Top achievements
Rank 1
Dilyan Traykov
Telerik team
Share this question
or