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

How to format a string in RadRibbonBackstageItem?

3 Answers 67 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Edmund Covington
Top achievements
Rank 1
Edmund Covington asked on 18 Jul 2014, 04:36 PM
I am trying to format the header string that is bound to an item from the view model.

eg

Header="{Binding EstimateTakeoffService.SelectedEstimate.Title, StringFormat='Estimate Information: {0}'}"

This doesn't show the "Estimate Information:"

Why does this not work?

Many thanks

Ed

3 Answers, 1 is accepted

Sort by
0
Accepted
Kiril Vandov
Telerik team
answered on 22 Jul 2014, 06:47 AM
Hello Ed,

The RadBackstageItem is a HeaderedContentControl and it does not have a StringFormat property, that is why when you set the Header like you showed in the your post the "Estimate Information:" is not displayed. If you want to display a StringFormat you need to bind your Header without setting StringFormat in the binding and also set the HeaderStringFormat property of the RadRibbonBackstageItem. You can observe that same behavior with the MS TabControl and its Tabitems.

Currently the HeaderStringFormat property of the RadRibbonBackstageItem is not working and even setting the HeaderStringFormat will not work. That is why I have logged that bug in our system and you could use our feedback portal to track its progress. I have also update your Telerik points as a small appreciation for your cooperation.

Please excuse us for any inconvenience caused.

Kind regards,
Kiril Vandov
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Edmund Covington
Top achievements
Rank 1
answered on 22 Jul 2014, 08:41 AM
Thanks for your reply. 

The HeaderStringFormat also doesn't display the string that I require.

eg <telerik:RadRibbonBackstageItem Width="250" Height="Auto" Padding="5" IsSelectable="True" Header="{Binding EstimateTakeoffService.SelectedEstimate.Title}" HeaderStringFormat="Estimate Information: {0}">

Have I missed something?






0
Edmund Covington
Top achievements
Rank 1
answered on 22 Jul 2014, 09:10 AM
My apologies. It seems I didn't read your reply in full! 

Thanks for your help.
Tags
RibbonView and RibbonWindow
Asked by
Edmund Covington
Top achievements
Rank 1
Answers by
Kiril Vandov
Telerik team
Edmund Covington
Top achievements
Rank 1
Share this question
or