Telerik Forums
UI for WPF Forum
1 answer
257 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
368 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
310 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
282 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
530 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
284 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
158 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
1 answer
238 views

When I select multiple shapes in my RadDiagram and execute the Delete command, I expect two events to fire: 

RadDiagram.ItemsChanging and RadDiagram.ItemsChanged.

In each event, I expect e.OldItems to contain all shapes that are being deleted.

Instead, I get individual event: first ItemsChanging and then ItemsChanged for every individual item in my selection. e.OldItems contains a single object every time.

Is this expected behavior? If not, what might I be doing wrong? Getting the shapes in individual events is bad because it doesn't allow me to prioritize the order in which I operate on each shapes. And because ItemsChanging and ItemsChanged fire for each shape until the next one happens, I can't easily cache all the changing items and THEN operate on the whole collection, either.

Dilyan Traykov
Telerik team
 answered on 04 Jul 2017
1 answer
299 views

HI ,

I am using property grid with multiple sections. I would like to sort the categories with my preference (not alphabetically or not default). How can i do it?

Dinko | Tech Support Engineer
Telerik team
 answered on 04 Jul 2017
1 answer
198 views

Hi,

I would like to define shifts which would start from noon (12pm-12pm), so basically 1 shift would be part in one day, and part in outer day, (minimum shift/appointment duration should be 24h) but would also like to preserve regular day header above it. Please take a look at the screenshot attached. It explains it much better than I could explain it. Is it possible to achieve something like this?

 

Thank you for you help!

Martin Ivanov
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
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?