Problem with Contextual Tabs using MVVM and ItemTemplateSelector

4 posts, 0 answers
  1. Rishabh
    Rishabh avatar
    10 posts
    Member since:
    Jun 2012

    Posted 11 Jun 2012 Link to this post

    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
  2. Viktor Tsvetkov
    Admin
    Viktor Tsvetkov avatar
    382 posts

    Posted 13 Jun 2012 Link to this post

    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 >>

  3. Ankita
    Ankita avatar
    1 posts
    Member since:
    Aug 2017

    Posted 04 Aug Link to this post

    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.

     

     

  4. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    587 posts

    Posted 09 Aug Link to this post

    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.
Back to Top