Telerik Forums
UI for WPF Forum
1 answer
247 views

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 { getset; }
03.    public List<RibbonGroup> ribbonGroups { getset; }
04.}
05.  public class RibbonGroup {
06.    public string header { getset; }
07.    public List<RibbonButton> ribbonButtons { getset; }
08.}
09.  public class RibbonButton {
10.  
11.    public string text { getset; }
12.    public string icon { getset; }
13.    public int size { getset; }
14.    public string parentPage { getset; }
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}" />

Martin Ivanov
Telerik team
 answered on 06 Jul 2017
14 answers
531 views
Hi,

I want to change the height of my RadPanelBarItem's from Height="Auto" to a larger, fix size e.g. Height="40".

Unfortunately it doesn't work, see attached screenshot. What did I wrong?  Here is my code:

<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>
Petar Mladenov
Telerik team
 answered on 06 Jul 2017
3 answers
99 views

 

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

Dilyan Traykov
Telerik team
 answered on 05 Jul 2017
1 answer
197 views

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.

 

Dilyan Traykov
Telerik team
 answered on 05 Jul 2017
1 answer
309 views

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?

    

Dilyan Traykov
Telerik team
 answered on 05 Jul 2017
10 answers
227 views
My software occasionally triggers the exception below. I'm not sure how to catch it or prevent it. Any ideas? I'm using version 2013.2.812.40.

Exception Info: System.OverflowException Stack: 
at System.Decimal..ctor(Double) at Telerik.Charting.LinearAxisModel+<GenerateTicksRegular>d__4.MoveNext() 
at Telerik.Charting.AxisModel.UpdateTicks() 
at Telerik.Charting.AxisModel.BuildTicksAndLabels(Telerik.Charting.RadSize) 
at Telerik.Charting.AxisModel.MeasureCore(Telerik.Charting.RadSize) 
at Telerik.Charting.AxisModel.Measure(Telerik.Charting.RadSize) 
at Telerik.Charting.CartesianChartAreaModel+AxisStack.Measure(Telerik.Charting.RadSize) 
at Telerik.Charting.CartesianChartAreaModel.PrepareAxesStacks(Telerik.Charting.RadSize) 
at Telerik.Charting.CartesianChartAreaModel.ArrangeAxes(Telerik.Charting.RadRect) 
at Telerik.Charting.ChartAreaModelWithAxes.ArrangeOverride(Telerik.Charting.RadRect) 
at Telerik.Charting.ChartNode.Arrange(Telerik.Charting.RadRect, Boolean) 
at Telerik.Charting.ChartAreaModel.Arrange() 
at Telerik.Windows.Controls.ChartView.RadChartBase.OnInvalidated() 
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) 
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) 
at System.Windows.Threading.DispatcherOperation.InvokeImpl() 
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) 
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) 
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) 
at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() 
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) 
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) 
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object) 
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) 
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) 
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32) 
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr) 
at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef) 
at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef) 
at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame) 
at System.Windows.Application.RunInternal(System.Windows.Window) at System.Windows.Application.Run() at PacketTester.App.Main() 
Martin Ivanov
Telerik team
 answered on 05 Jul 2017
1 answer
231 views
I created a custom diagram shape style that has the content presenter above the shape. The shape looks great until I select it or attempt to create connections to it. I want the selection box only around the shape and not the text. The connectors are also not attached to the connection points on the shape. I have included some images of the issues I am seeing. I assume it has something to do with modifying the manipulation adorner to target the shape within the DiagramShape rather than the entire DiagramShape.
Martin Ivanov
Telerik team
 answered on 05 Jul 2017
1 answer
475 views
i'm using richtextbox for displaying html and when i got text with 500k char the system stuck for 40 minutes, with 100k it took 3 minutes, with 10k it took 3 seconds
is there anything to do with the performance? is it known issue?
except trimming the text is there anything else to do?
Boby
Telerik team
 answered on 05 Jul 2017
1 answer
244 views

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?

Dinko | Tech Support Engineer
Telerik team
 answered on 04 Jul 2017
3 answers
136 views

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 !

Kalin
Telerik team
 answered on 04 Jul 2017
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?