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

Buttons will not re-enable

3 Answers 88 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Doug
Top achievements
Rank 1
Doug asked on 06 Jul 2012, 07:21 PM
I am using the Q2 2012 Silverlight controls and have a collection of RadRibbonToggleButtons in a RadRibbonView that are bound to a DelegateCommand.  These buttons can become enabled or disabled over the course of the program running through the CanExecute functionality of the DelegateCommand.  The problem I'm running into is that while buttons on RadRibbonTabs other than the current one will be disabled properly when you navigate to that tab, but if you have previously viewed the tab the buttons will not become re-enabled after being disabled.  Buttons on the current tab will change as expected.

I tried using the RadRibbonView.SelectionChanged event and a binding on RadRibbonView.SelectedItem to manually invalidate CanExecute, but it does not work the first time you go to the tab, only on the next time you go to the tab.  For example you are viewing tab 1 when all the buttons ought to become enabled, then you go to tab 2 and the buttons are still disabled, but if you go to tab 3 then back to tab 2 the buttons are enabled.

Is there some other way to get the buttons to enable at the right time or will I have to wait for a bug fix?

3 Answers, 1 is accepted

Sort by
0
Bruno
Top achievements
Rank 1
answered on 09 Jul 2012, 01:11 PM
Hi Doug

Thank you for your post. We do have the same behavior in our Application. We tried everything to get it work... but there seems to be no workaround.

We got back to Q1.2012 and tried all 'internal builds' to see when the changes where made by Telerik. The latest version that works (as it should) is 2012.1.416.1050.

As long as this bug exists we can not update to Q2.2012...
Dear Telerik-Team, please resolve this bug as soon as possible.

Thank you!
0
Accepted
Zarko
Telerik team
answered on 11 Jul 2012, 08:49 AM
Hi,
Thank you for the feedback. There really seems to be a problem with the CanExecute inside a RibbonView and I logged it in our PITS under the name "CanExecute doesn't work correctly inside collapsed RadRibbonTabs" and it'll be ready for voting and tracking tomorrow the latest. I hope that this bug will be fixed for our next internal build or the upcoming Service Pack.
For now I was able to find one workaround - handle the loaded event of your RadRibbonGroup and invalidate the command there.
I've attached a sample project and if you have further questions please feel free to ask.

All the best,
Zarko
the Telerik team

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

0
Doug
Top achievements
Rank 1
answered on 11 Jul 2012, 01:09 PM
Yes that does seem to work.  I had tried the Loaded event on the RadRibbonTab, but that had no effect, so I looked elsewhere for a workaround.  Thank you.
Tags
RibbonView and RibbonWindow
Asked by
Doug
Top achievements
Rank 1
Answers by
Bruno
Top achievements
Rank 1
Zarko
Telerik team
Doug
Top achievements
Rank 1
Share this question
or