Telerik Forums
UI for WPF Forum
8 answers
181 views

Hi,

I'd like to replicate a graph which looks like the one you can see in the attached screenshot with min and max ranges written to the left side of each respective bar. Please note the number of bars and their values are determined at runtime. I know how to create the bar and lineseries programmatically, but not how to create such layout by code.

Please help me in this matter.
Christian
Top achievements
Rank 1
 answered on 27 Jun 2016
3 answers
134 views

Hello,

I'm sure this is me, but I'm stuck none the less.

I have two LOB WPF apps that have been running fine for several years. I updated them this week to the newest release version (2016.2.613.40). Now all of the RadDatePicker controls throw a NullRefferenceException in PresentationFramework.dll whenever the calendar pulldown button of the RadDatePicker is clicked.

Stack Trace is below. When I start a new app and use the RadDatePicker of course everything works fine. So I assumed that it must be a dll version mismatch but the Controls.dll and the Controls.Input.dll do match the release version.

Seeing the last stack step involved initializing touch for the control, I've unsuccessfully tried disabling the touch manager as the error still occurs.:

TouchManager.SetIsTouchHitTestVisible(TestRadDatePicker, false);
TouchManager.IsTouchEnabled = false;

 

Do you have a suggestion on how to troubleshoot this? Thanks in advance!

 

Scott

 

   at Telerik.Windows.Controls.RadCalendar.InitializeTouch()
   at Telerik.Windows.Controls.RadCalendar.OnApplyTemplate()
   at System.Windows.FrameworkElement.ApplyTemplate()
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Decorator.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Primitives.PopupRoot.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Interop.HwndSource.SetLayoutSize()
   at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
   at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)
   at System.Windows.Controls.Primitives.Popup.SetRootVisualToPopupRoot()
   at System.Windows.Controls.Primitives.Popup.CreateWindow(Boolean asyncCall)
   at System.Windows.Controls.Primitives.Popup.OnIsOpenChanged(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.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   at Telerik.Windows.Controls.AutoClosePopupWrapper.set_IsOpen(Boolean value)
   at Telerik.Windows.Controls.RadDropDownButton.OnIsOpenChanged(Boolean newValue, Boolean oldValue)
   at Telerik.Windows.Controls.RadDropDownButton.OnIsOpenPropertyChanged(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.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   at Telerik.Windows.Controls.RadDropDownButton.OnClick()
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at Telerik.Windows.Controls.RadDropDownButton.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   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 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run(Window window)
   at System.Windows.Application.Run()
   at RnsTimeSheet.App.Main() in C:\Projects\RnsTimeSheet\RnsTimeSheet\obj\x86\Debug\App.g.cs:line 0
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at System.AppDomain.nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)
   at System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()
   at System.Runtime.Hosting.ApplicationActivator.CreateInstanc...

Polya
Telerik team
 answered on 27 Jun 2016
1 answer
159 views

Hello,

How to Right-To-Left RadGridView?

Amirhossein
Top achievements
Rank 1
 answered on 25 Jun 2016
5 answers
391 views

HI Telerik,

I am using ScatterLineSeries and I want to show tooltip on the points on Mouse hover. In order to show tooltip I used Point Template while styling the chart. Since I do not want to see the ellipse, I set the color to transparent.  But I have a huge number of points in the series and the UI freezes for long time while rendering the Lines. Then I realized that PointTemplate is causing the freeze. I removed it and the chart is rendering very fast. But the tooltip is not shown anymore. Please help me how to show tooltip without using Point Template.

 

Thanks,

Shilpa

Dinko | Tech Support Engineer
Telerik team
 answered on 24 Jun 2016
3 answers
127 views

Is there a way to preserve the expanded groups *using isolated storage* ?....I managed to get the sorting saving, but not the user expanded groups, so that when the app is run again the groups that were expanded previously remain expanded as the user left them (which is a business requirement of our app).

Thanks,

 

Barry

Stefan
Telerik team
 answered on 24 Jun 2016
3 answers
188 views

I have two problems and a question concerning RadRichTextBox:

Problem 1: I have imported (with RtfFormatProvider ) an RTF document (Word RTF ) to RadRichTextBox. This document contains a header with merge fields. Also some other merge fields in the “body” of the document. I have also attached a merge collection with some dummy data to the document. When the document is opened in RadRichTextBox then the merge fields in the head are already mailMerge’ed. The merge fields that are not in the head is not mailMerge’ed . What to do, to avoid that mailmerg are not be performed in the header of the document when open in RadRichTextBox?

Problem 2: Same RTF document (Word RTF) as above. In the head, there is a TAB between the merge fields, but the distance between the merge fields are shorter when the document is imported into RadRichTextBox than when it is open in Word. The rest of the document, look like the same. What should I do to change TAB space in the header?

One question: When it have completed a Mailmerge (test mailmarge). Can I undo (with code) the Mailmerge? I just want to be able to test Mailmerge, that it was correct and then recover the document as it was before the Mailmerge, and also if I have added some text after the Mailmerge or something else like change text till bold. The recovered file should also contain the changes after the mailmarge.

Todor
Telerik team
 answered on 24 Jun 2016
2 answers
150 views

Hi,

       I am implementing an app using RadBook. I am using data templates to bind the data. When the data is more than the page height, i want to avoid the page scroll and port that overflown data in to the next page.

Attaching images to show how i want the data to be spilt in to two pages. Right now, entire data is shown up in a single page with a scrolling.

Is there a method available with Radbook to attain this? If not, what are the alternate solutions i can try to achieve this effect.

Thanks in advance

 

regards

P A Naidu

 

Naidu
Top achievements
Rank 1
 answered on 24 Jun 2016
1 answer
276 views

I want to know, how to faster load RadGridView.

RadGridView code is below.

                        <telerik:RadGridView x:Name="Part_TagListGridView_AI" DataContext="{Binding}" ItemsSource="{Binding TagAICollections}" AutoGenerateColumns="False" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" ShowColumnFooters="True" ShowGroupPanel="False" ShowGroupFooters="False" ScrollMode="RealTime" AllowDrop="True" IsFilteringAllowed="False" GroupRenderMode="Flat" RowStyle="{StaticResource RadGridRowCommonStyle}" MouseDoubleClick="Part_TagListGridView_MouseDoubleClick" RowIndicatorVisibility="Collapsed" CanUserReorderColumns="False">
                            <telerik:RadGridView.Columns>
                                <telerik:GridViewDataColumn  Header="태그ID-AI" DataMemberBinding="{Binding TAG_ID}" IsReadOnly="True" />
                                <telerik:GridViewDataColumn  Header="장치 ID" DataMemberBinding="{Binding DEVICE_ID}" IsReadOnly="True"/>
                                <telerik:GridViewDataColumn  Header="장치 명칭" DataMemberBinding="{Binding DEVICE_NAME}" IsReadOnly="True"/>
                                <telerik:GridViewDataColumn  Header="그룹 ID" DataMemberBinding="{Binding GROUP_ID}" />
                                <telerik:GridViewDataColumn  Header="포인트 인덱스" DataMemberBinding="{Binding POINT_IDX}" />
                                <telerik:GridViewDataColumn  Header="태그 종류(Code)" DataMemberBinding="{Binding TAG_TYPE_CODE, Converter={StaticResource TagTpCodeConvert}}" CellEditTemplate="{StaticResource TagTpComboBox}" IsReadOnly="True"/>

 

                               ............... column count is 36. .......................

                            </telerik:RadGridView.Columns>
                        </telerik:RadGridView>

 

And data error check in code behind.

 

Maximum row count is 1000.

Please, answer to me.

Thank you.

 

Dilyan Traykov
Telerik team
 answered on 23 Jun 2016
5 answers
187 views

I have a column which shows the state of my object in colors. It also shows a short name as text. The grouping and sorting works on the state, which is an enum.

I would want the text search (as in RadGridView.ShowSearchPanel) to search for the short name.

Is there a setting on the column that lets me do this?

 

(I really do not want to change the DataMemberBinding which binds to the state, because the looks and function of the cell is in styles and templates, which are reused all over my applications).

 

Thanks,

Inger Marie

Stefan Nenchev
Telerik team
 answered on 23 Jun 2016
2 answers
84 views

Dear support,

I need a textlabel above the grid that displays the number of filtered columns.

My columnfilters are all implemented the way that is described in der following article http://docs.telerik.com/devtools/wpf/controls/radgridview/filtering/custom-filtering-controls.

Is there a property which contains the number of active filter that I can bind to my textlabel? Or how can I implement it to achieve this aim.

Thanks in advance

Marcus

Marcus
Top achievements
Rank 1
 answered on 23 Jun 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?