hi,
I am trying to create a ribbon menu from a json file. Tabs ands groups are being displayed. But buttons are not. instead, the class names of the buttons are displayed as text and they can not be clicked. what could be the reason ? any example of such system would be appreciated.
so here are my business objects:
01.
public
class
RibbonTab {
02.
public
string
header {
get
;
set
; }
03.
public
List<RibbonGroup> ribbonGroups {
get
;
set
; }
04.
}
05.
public
class
RibbonGroup {
06.
public
string
header {
get
;
set
; }
07.
public
List<RibbonButton> ribbonButtons {
get
;
set
; }
08.
}
09.
public
class
RibbonButton {
10.
11.
public
string
text {
get
;
set
; }
12.
public
string
icon {
get
;
set
; }
13.
public
int
size {
get
;
set
; }
14.
public
string
parentPage {
get
;
set
; }
15.
16.
public
string
ButtonText {
get
{
return
text; } }
17.
public
Telerik.Windows.Controls.RibbonView.ButtonSize ButtonSize
18.
{
19.
get
{
20.
return
(Telerik.Windows.Controls.RibbonView.ButtonSize)size;
21.
}
22.
}
23.
}
here is my view:
<
UserControl.Resources
>
<
Style
TargetType
=
"{x:Type telerik:RadRibbonButton}"
>
<
Setter
Property
=
"Text"
Value
=
"{Binding ButtonText}"
/>
</
Style
>
<
Style
TargetType
=
"telerik:RadRibbonGroup"
>
<
Setter
Property
=
"Header"
Value
=
"{Binding header}"
/>
<
Setter
Property
=
"ItemsSource"
Value
=
"{Binding ribbonButtons}"
/>
</
Style
>
<
Style
TargetType
=
"telerik:RadRibbonTab"
>
<
Setter
Property
=
"Header"
Value
=
"{Binding header}"
/>
<
Setter
Property
=
"ItemsSource"
Value
=
"{Binding ribbonGroups}"
/>
</
Style
>
</
UserControl.Resources
>
<
telerik:RadRibbonView
ItemsSource
=
"{Binding RibbonTabs}"
/>
<
telerik:RadPanelBar
Margin
=
"7,7,0,25"
HorizontalAlignment
=
"Left"
Width
=
"129"
Background
=
"#FFEFEFEF"
MaxHeight
=
"400"
>
<
telerik:RadPanelBarItem
Header
=
"Network Connections"
Height
=
"40"
Background
=
"#FFEFEFEF"
FontFamily
=
"Segoe UI"
FontSize
=
"12"
>
<
telerik:RadPanelBarItem
Header
=
"Delete Items"
/>
<
telerik:RadPanelBarItem
Header
=
"Inbox"
/>
<
telerik:RadPanelBarItem
Header
=
"Send Items"
/>
<
telerik:RadPanelBarItem
Header
=
"OutBox"
/>
<
Button
Content
=
"Button"
Style
=
"{StaticResource LinkButton}"
Height
=
"29"
Width
=
"82"
HorizontalAlignment
=
"Left"
Name
=
"button1"
VerticalAlignment
=
"Top"
Click
=
"button1_Click"
/>
<
telerik:RadPanelBarItem
Header
=
"Search Folders"
/>
</
telerik:RadPanelBarItem
>
HI ,
I'am facing a problem that drives me mad.
I play with samples. I build a grid, with no specific options, just following tutorial I can enter in Edit Mode in a cell (see green circle in picture) , but then I can not type anything (see red square in picture) !!
I tried everything, even , I changed keyboard, but nothing is input in the Textbox of any Column. . The boxes stay empty
What can be wrong ? please , that s really annoying
Thanks
Is there a way to copy/export the data in a GridView without applying DataFormatString? We have custom formatting on some values and when pasting the values in Excel it's not able to parse them correctly.
I guess that the issue lies in Excel, but a value that is displayed in the RadGridView as "2 250,00" (DataFormatString = "N2", Swedish culture) is parsed as a String when pasted to Excel, and it's impossible to apply any other format until I remove the thousand separator (even when Excel is using a format with a thousand separator).
We're currently copying to the clipboard in Html-format, because some cells contains text with linebreaks, and this seems to be the only way to keep them without breaking the rows.
The image I'm working on has some metadata because of which the landscape photo is displayed portrayed. User can rotate once loaded, but what I'm trying to achieve is load the image with proper orientation in first place. I have tested my C# code to read the metadata orientation of image and correct it accordingly to load it properly in normal WPF image control. But I'm having problem using the same code in the Telerik RadImageEditorUI. Basically, I'm looking for an event that could be raised when user selects open>select image from radImageEditorUI dialog box, which then I can use to handle the orientation handling code.
So, my question is, is there something in Telerik RadImageEditorUI that can handle the orientation issue when loading image? or Is there some kind of image loading or image selected event raised?
I'd like to place additional content to *left* of a standard, top/left aligned set of tabs. I know that RadTabControl offers an AdditionalContent property, which allows me to specify the necessary content, but it always places that content on the far-right edge of the tab strip. How can I shift that to the left edge of the tab strip?
Hello,
When I use RadScheduleView in visual studio designer, the following exception appears and I cannot visualize control at design-time:
(Note all is fine at runtime).
NullReferenceException: Object reference not set to an instance of an object.
StackTrace:
at Telerik.Windows.Controls.ScheduleView.AppointmentExtensions.GetOccurrences(IAppointment appointment, DateTime from, DateTime to)
at Telerik.Windows.Controls.DateGroupDescription.GroupNameFromItem(Object item, Int32 level, CultureInfo culture)
at MS.Internal.Data.CollectionViewGroupRoot.AddToSubgroups(Object item, LiveShapingItem lsi, CollectionViewGroupInternal group, Int32 level, Boolean loading)
at System.Windows.Data.ListCollectionView.PrepareGroups()
at System.Windows.Data.ListCollectionView.PrepareLocalArray()
at System.Windows.Data.ListCollectionView.RefreshOverride()
at System.Windows.Data.CollectionView.RefreshInternal()
at System.Windows.Data.CollectionView.Refresh()
at System.Windows.Data.CollectionView.EndDefer()
at System.Windows.Data.CollectionView.DeferHelper.Dispose()
at Telerik.Windows.Controls.ScheduleView.ScheduleViewDataConnection.SetGroupingAndFiltering(IEnumerable`1 groupDescriptions)
at Telerik.Windows.Controls.ScheduleViewBase.RegenerateGroupHeaders()
at Telerik.Windows.Controls.ScheduleViewBase.OnAppointmentSourceChanged(IEnumerable oldValue, IEnumerable newValue)
at Telerik.Windows.Controls.ScheduleViewBase.UpdateScheduleViewOnAppointmentSourceChanged(IEnumerable oldValue, IEnumerable newValue)
at Telerik.Windows.Controls.ScheduleViewBase.OnAppointmentsSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp, Boolean preserveCurrentValue)
at System.Windows.Data.BindingExpressionBase.Invalidate(Boolean isASubPropertyChange)
at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)
at System.Windows.Data.BindingExpression.Activate(Object item)
at System.Windows.Data.BindingExpression.AttachToContext(AttachAttempt attempt)
at System.Windows.Data.BindingExpression.MS.Internal.Data.IDataBindEngineClient.AttachToContext(Boolean lastChance)
at MS.Internal.Data.DataBindEngine.Task.Run(Boolean lastChance)
at MS.Internal.Data.DataBindEngine.Run(Object arg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 nu
Any Idea ? Tanks a lot !