Telerik Forums
UI for WPF Forum
11 answers
270 views

I have an sporadically unexplicable OverflowException in RibbonView. 

All information i have from the user is, they are scrolling or using the mousewheel inside the window 
and a  small Stack Trace

Exception:
########################################
Message: UnhandledException OverflowException "Die arithmetische Operation hat einen Überlauf verursacht."(German)
Source: Telerik.Windows.Controls.RibbonView
Location: Telerik.Windows.Controls.RibbonView.Shell.WindowChromeWorker._HandleNCHitTest

Stack Trace:
   bei Telerik.Windows.Controls.RibbonView.Shell.WindowChromeWorker._HandleNCHitTest(WM uxoMsg, IntPtr param, IntPtr legParam, Boolean& handled)
   bei Telerik.Windows.Controls.RibbonView.Shell.WindowChromeWorker._WndProc(IntPtr hwnd, Int32 msg, IntPtr param, IntPtr legParam, Boolean& handled)
   bei System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

Any idees?

WPF Telerik Version 2012.3.1129.40
Martin Ivanov
Telerik team
 answered on 28 Nov 2017
3 answers
248 views

I'm trying to create a LineSeries chart with two series of data which are displayed on top of each other. The display data is data bound to series1 and series2. When I use the code below the two graphs are adjacent to each other (series1 on the left and series2 on the right). How can I get the two series to display on top of each other?

<telerik1:RadCartesianChart x:Name="RadChart1">
 <telerik1:RadCartesianChart.HorizontalAxis>
  <telerik1:CategoricalAxis
   x:Name="AxisX"
   Title="Length (km)"
   IsStepRecalculationOnZoomEnabled="True"
   LabelFormat="{}{0:0.000}"
   MajorTickInterval="1000"
   PlotMode="OnTicks"
   SmartLabelsMode="SmartStep"
   TitleTemplate="{DynamicResource BoldAxisTitle}" />
 </telerik1:RadCartesianChart.HorizontalAxis>
 
 <telerik1:RadCartesianChart.VerticalAxis>
  <telerik1:LinearAxis
   x:Name="AxisY"
   Title="dB"
   MajorStep="5"
   Maximum="40"
   Minimum="0"
   TitleTemplate="{DynamicResource BoldAxisTitle}" />
 </telerik1:RadCartesianChart.VerticalAxis>
 
 <telerik1:RadCartesianChart.Series>
  <telerik1:LineSeries
   CategoryBinding="XVal"
   ItemsSource="{Binding series1}"
   Stroke="RoyalBlue"
   StrokeThickness="1"
   ValueBinding="YVal">
   
  </telerik1:LineSeries>
   <telerik1:LineSeries
   CategoryBinding="XVal"
   ItemsSource="{Binding series2}"
   Stroke="Purple"
   StrokeThickness="1"
   ValueBinding="YVal">
  </telerik1:LineSeries>
 </telerik1:RadCartesianChart.Series>
</telerik1:RadCartesianChart>

Dinko | Tech Support Engineer
Telerik team
 answered on 28 Nov 2017
9 answers
350 views
Hello,
I have searched the forum but have not found a way to get notification when:
1.  a column is moved 
2.  a column is resized

What is the straightforward way to capture these events? I'm trying to do this from a custom control that extends RadGridView.

I'm using Q2 release.

Thanks,
Laura
parthiv
Top achievements
Rank 1
 answered on 28 Nov 2017
1 answer
254 views

Hi Team,

I would like to set few styles, namely TextDecorations like StrikeThrough, Underline and other styles like Horizontal Alignment, Boldness and Font Style programmatically by creating a FrameworkElementFactory of type Textblock and then assigning the same to a DataTemplate of type GridViewRow, which is then assigned to the ContentTemplateProperty of the GridViewRow; but to no avail.

Could you please guide me on the same.

Please let me know if any details/clarifications are required.

Thanks,

Swapnil Ramteke

Vladimir Stoyanov
Telerik team
 answered on 27 Nov 2017
1 answer
355 views

Hello

I used the following code to export to image

        Dim filename As String = "C:\Export\ExportedChart.png"

        Using fileStream As Stream = File.Open(filename, FileMode.OpenOrCreate)
            Telerik.Windows.Media.Imaging.ExportExtensions.ExportToImage(Me.chart, fileStream, New PngBitmapEncoder())
        End Using

 

But the exported image misses the X and Y coordinate values. How can I export the image exactly as seen in the UI

I would like to export to PDF as well.

Dilyan Traykov
Telerik team
 answered on 27 Nov 2017
3 answers
263 views

How can I display the X and Y values in the tool tip for radCartesianchart bar series

 

In radChart, there is a option as below:

<telerik:BarSeriesDefinition ItemToolTipFormat="the X value is #X, the Y value is #Y"ShowItemToolTips="True" />
    </telerik:SeriesMapping.SeriesDefinition>

Martin Ivanov
Telerik team
 answered on 27 Nov 2017
2 answers
292 views

Hi,

I would like to use middle mouse to move viewport ?

Can you help me please ?

Thanks,

Nicolas

nicolasf
Top achievements
Rank 2
 answered on 27 Nov 2017
16 answers
586 views
Hi,
We need to have a RadGridView containing a bound column that could hold a long text (up 4000 char). Each cell if the column will have a little button on the side, and would just show a portion of the text. When the user clicks on the button, an editor popups (ideally in adjacent to the clicked cell) and user can edit the entire text and save it back to cell. Is that doable with the RdaGrdiView? Any help would be much appreciated.
Thanks
Stefan
Telerik team
 answered on 24 Nov 2017
1 answer
309 views

Hi,

we are using telerik-wpf controls for years now and are very happy, thanks so far. Now we are looking for a possibility to change
XAML Pages during runtime with an GUI Interfacec. We want to load the XAML page with its elements and display them. Some of
the elements should be protected. With drag & drop the user should be able to place a new textbox in the page an link this textbox
with a database-field.
After saving the user should only reopen the changed mask in the application and it should show the new field!

Is this possible with telerik controls in one way?

Thanks
Best Regards
RENE

Stefan
Telerik team
 answered on 24 Nov 2017
4 answers
462 views

Hi,

the last days, our customers suffer from following exception in our WPF/MVVM/PRISM/C# application. It is in German, but I give a translation for the important parts:

 

Source: PresentationFramework

HelpLink: null

Message: Beim Auswerten der Style-Eigenschaft für Element "Telerik.Windows.Controls.RadRibbonTab Header: Items.Count:0" wurde ein zyklischer Verweis gefunden. Translation: Cyclic reference found while evaluating the style property for element "Telerik.Windows.Controls.RadRibbonTab Header: Items.Count:0"

InnerException:  null

StackTrace:    bei System.Windows.FrameworkElement.UpdateStyleProperty()    

bei System.Windows.TreeWalkHelper.InvalidateOnTreeChange(FrameworkElement fe, FrameworkContentElement fce, DependencyObject parent, Boolean isAddOperation)    

bei System.Windows.FrameworkElement.OnVisualParentChanged(DependencyObject oldParent)    

bei System.Windows.Media.Visual.FireOnVisualParentChanged(DependencyObject oldParent)    

bei System.Windows.Media.Visual.RemoveVisualChild(Visual child)    

bei System.Windows.Media.VisualCollection.DisconnectChild(Int32 index)    

bei System.Windows.Media.VisualCollection.Clear()    

bei System.Windows.Controls.UIElementCollection.ClearInternal()    

bei System.Windows.Controls.Panel.ClearChildren()    

bei System.Windows.Controls.Panel.OnItemsChangedInternal(Object sender, ItemsChangedEventArgs args)    

bei System.Windows.Controls.Panel.OnItemsChanged(Object sender, ItemsChangedEventArgs args)    

bei System.Windows.Controls.ItemContainerGenerator.OnRefresh()    

bei System.Windows.Controls.ItemContainerGenerator.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)    

bei System.Windows.WeakEventManager.ListenerList`1.DeliverEvent(Object sender, EventArgs e, Type managerType)    

bei System.Windows.WeakEventManager.D

 

The exception appears when I open the application, don't use it for at least one minute and then open a new dialog of the application. The dialog contains a RadRibbon usercontrol. Sometimes the exception occurs when I don't wait a minute, but it appears more reliable if I do.

 

It does not appear when I debug the application. However, If I use the release mode in Visual Studio 2015 and start the application without debugging, I can reproduce the exception.

Since I cannot debug the application for this issue, I only hope for a flash of inspiration on how I could further approach this issue. If you need further information, please tell me.

Thank you!

 

 

Michael
Top achievements
Rank 1
 answered on 24 Nov 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
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?