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

RibbonTab IsSelected issue in RibbonView

3 Answers 90 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
VS
Top achievements
Rank 1
VS asked on 18 Mar 2013, 05:47 AM
Hi,

I have a RadRibbonView with RadRibbonTab inside it to display Module names.
The itemsource of RadRibbonView is set with my modules and these modules are converted to tabs at runtime using a converter to the ItemSource.
From the converter, I set the first tab as IsSelected= true and it set correctly and higlights the specific tab.
But the details/contents of that tab is not displayed.
Ie: OnSelectionTabChanged event doesn't fire in this case.
Where when I click a different tab, it works fine. but when i click the first tab again, it doesn't work.
When I checked using WPF inspector, i can see that IsSelected property of the first tab is always true even when i select a different tab.
any help?

am using 2013 Q1.
The same code was working perfectly whern i used rabribbontab. Now am converting this to radribbonview ince ribbontab doesnt exists in the new release.

Cheers






3 Answers, 1 is accepted

Sort by
0
Kiril Vandov
Telerik team
answered on 20 Mar 2013, 09:16 AM
Hello Varikkara,

We have already answered this question in the support thread (ticket ID: 672236) you started. Please let us know if you have further questions.

Kind regards,
Kiril Vandov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Barry
Top achievements
Rank 1
answered on 19 Jul 2019, 01:26 PM
The answer posted here would of helped me with a similar issue...
0
Martin Ivanov
Telerik team
answered on 23 Jul 2019, 07:20 AM

Hello Barry,

Posting the reply from the support thread in case this helps.

------------------------------------------------------------------------

"Setting the RadRibbonView ItemSource collection will automatically wrap each business item in RadRibbonTab. Using a converter which creates RadRibbonTabs will cause each converter tab to be nested in another dynamically generated RadRibbonTab which may lead to unexpected results.

If you want to use MVVM and fill the ItemSource collection using your own classes you could use HierarchicalDataTemplate. You could see the RadRibbonView MVVM implementation in our demo "Paint with MVVM" here."

------------------------------------------------------------------------

Regards, Martin Ivanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
RibbonView and RibbonWindow
Asked by
VS
Top achievements
Rank 1
Answers by
Kiril Vandov
Telerik team
Barry
Top achievements
Rank 1
Martin Ivanov
Telerik team
Share this question
or