Telerik Forums
UI for WPF Forum
2 answers
497 views
We are getting this internal error....in my team,In some pc's the documents containing radcharts works fine..but on some pcs it gives this error...

   at System.Windows.UIElement.Measure(Size availableSize)
   at Telerik.Windows.Controls.Charting.LinearSeriesPanel.MeasureOverride(Size availableSize) in c:\Builds\WPF_Scrum\Release_WPF_2010_Q2\Sources\Development\Controls\Chart\Chart\ChartArea\Series\LinearSeriesPanel.cs:line 156
   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.ItemsPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Control.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at Telerik.Windows.Controls.Charting.ChartPanel.MeasureOverride(Size availableSize) in c:\Builds\WPF_Scrum\Release_WPF_2010_Q2\Sources\Development\Controls\Chart\Chart\ChartArea\ChartPanel.cs:line 44
   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.ItemsPresenter.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.Controls.Canvas.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Control.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at Telerik.Windows.Controls.Charting.ClipPanel.MeasureOverride(Size availableSize) in c:\Builds\WPF_Scrum\Release_WPF_2010_Q2\Sources\Development\Controls\Chart\Chart\ChartArea\ClipPanel.cs:line 30
   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)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Border.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Control.MeasureOverride(Size constraint)
   at Telerik.Windows.Controls.Charting.ChartArea.MeasureOverride(Size availableSize) in c:\Builds\WPF_Scrum\Release_WPF_2010_Q2\Sources\Development\Controls\Chart\Chart\ChartArea\ChartArea.Core.cs:line 1205
   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 Telerik.Windows.Controls.RadDockPanel.MeasureOverride(Size availableSize) in c:\Builds\WPF_Scrum\Release_WPF_2010_Q2\Sources\Development\Core\Controls\Panels\RadDockPanel.cs:line 170
   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)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at Telerik.Windows.Controls.Charting.ScalePanel.MeasureOverride(Size availableSize) in c:\Builds\WPF_Scrum\Release_WPF_2010_Q2\Sources\Development\Controls\Chart\Chart\ScalePanel.cs:line 70
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Border.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Control.MeasureOverride(Size constraint)
   at Telerik.Windows.Controls.RadChart.MeasureOverride(Size availableSize) in c:\Builds\WPF_Scrum\Release_WPF_2010_Q2\Sources\Development\Controls\Chart\Chart\RadChart.cs:line 791
   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.Controls.Border.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Control.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Canvas.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.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(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 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.InvokeImpl(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.Threading.Dispatcher.Run()
   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 Logic.DashBoard.Application.Main() in D:\WPFProjects\Logic.DashBoard\Logic.DashBoard\obj\x86\Debug\Application.g.vb:line 79
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()


Thanks,
Kapil Garg
Nikolay
Telerik team
 answered on 05 Oct 2010
1 answer
88 views
Has anyone tried to include Winforms and WPF controls in same  Winforms project using Telerik's controls?
I was just curious about what experiences users have had while trying to upgrade  project based on  RadControls for Winforms, by including some WPF controls.

Thanks
Vlad
Telerik team
 answered on 05 Oct 2010
1 answer
167 views
Hi,

I have a tree control sometimes when select a item and go for deleting and before deleting
I check the count,since I am expencting the count to be 1 (trvOutputTree.SelectedItems.Count())
it says count is two, first item is a always DependencyProperty.UnsetValue.
I checked this link: http://msdn.microsoft.com/en-us/library/system.windows.dependencyproperty.unsetvalue.aspx

but dont in this case why its showing this? Are you guys internally using it somewhere?

Thanks,
Bala
Kiril Stanoev
Telerik team
 answered on 04 Oct 2010
2 answers
196 views
Hi,

Is it possible to allow more decimal digits if the user enters more. Say I have NumberDecimalDigits=2 and the user types in 10.123, then the control will show 10.12. I would like it to show 10.123. But if the user types in 10, I would like to show 10.00 (so I can't just change NumberDecimalDigits to 3).

Any suggestions?

Thanks!
Geoff Smith
Top achievements
Rank 1
 answered on 04 Oct 2010
7 answers
275 views
Hi,

I was looking RadComboBox trial version. Do you know how I can open the dropdown when we start typing not on the OpenDropDownOnFocus?

Thanks,
Akhil
George
Telerik team
 answered on 04 Oct 2010
2 answers
897 views
Hi,
I am creating a combobox in which I have placed check boxes which allows me multiple selection. I tried it in two ways:

1. I used a collection of objects of entities defined by me.
2. Created a datatable and then assigned it to the combobox.

In both the approaches I have same problem of showing the seleced items with check box selected in the combobox.

I have used follwoing code, which is showing me values correctly in the combobox but the problem occures when I want to show the selected item's check box selected. Can anyone suggest me a solution for this Or if you have any other better idea to implement the multiple selecte combobox then I will be greatful to you.
i have used :

<ComboBox  Name="cboBox1"
                              Style="{StaticResource ComboBox}" ItemsSource="{Binding}"> 
                        <ComboBox.ItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
                                    <CheckBox Margin="3" Name="chkInsideCboBox1"
                                              DataContext="{Binding ElementName=BusinessEntityName, Path=BusinessEntityId}"
                                              IsChecked="{Binding Path=Default}"  Style="{StaticResource CheckBoxFilter}"></CheckBox>
                                    <TextBlock Text="{Binding Path=BusinessEntityNameField}" ></TextBlock>
                                </StackPanel>
                            </DataTemplate>
                        </ComboBox.ItemTemplate> 
                    </ComboBox>

Thanks in advance
Murray
Top achievements
Rank 2
 answered on 04 Oct 2010
1 answer
94 views
Hi,
I have a treeview with checkboxes.
The problem is that when i expand a node that is checked it looses its state and gets unchecked.
Im using load on demand to get the new nodes .... i don't know if it has anything to do with it.

Thanks .
Petar Mladenov
Telerik team
 answered on 04 Oct 2010
1 answer
155 views
Hi guys,

Do you take apply RenderTransforms to the transition?
For example:
<telerik:RadTransitionControl ClipToBounds="False" Content="[Bound to data]" Margin="30" Duration="0:0:0.2"
                                                                      VerticalContentAlignment="Center" HorizontalContentAlignment="Center">
                                            <telerik:RadTransitionControl.Transition>
                                                <telerik:MotionBlurredZoomTransition />
                                            </telerik:RadTransitionControl.Transition>
                                            <telerik:RadTransitionControl.RenderTransform>
                                                <TranslateTransform Y="Some value, i.e. -200" />
                                            </telerik:RadTransitionControl.RenderTransform>
                                        </telerik:RadTransitionControl>

This transition will position the Content disappearance at center instead at TranslateTransform-ed location.
Pana
Telerik team
 answered on 04 Oct 2010
1 answer
177 views


Hello teleriks,

Can we able to set the customiable styles for datetimepicker ?

 when i tried it only allows me to pput style for fontsize and fontstyle for the date we type . can we put styles like

background foreground ?

The style can define:

- Text Font style, size, color and alignment.

- Background / Foreground colors.

- Tooltip style (font, background and foreground).

- Image (size and position).

- Style of the associated button.



Please reply me . share me some sample if you have.

Thanks & regards,
srinivas
Pana
Telerik team
 answered on 04 Oct 2010
1 answer
74 views

Hello,

We are using the PrintExtensions class as mentioned in Vlad's post 9 months ago.

Our application is a WinForms app that has an ElementHost we use to load the control.  It has started crashing on the following line:

 

element.Arrange(new Rect(new Point(0, 0), element.DesiredSize));

It doesn't even throw an exception in Debug mode (F5), it just crashes to desktop.  We stepped through the code to identify where the exception occurs and found it on that line.  The only other thing I see is some first chance exceptions in the Debug Output window like so right after the exception occurs:

Step into: Stepping over non-user code 'System.Windows.Point.Point'
A first chance exception of type 'System.InvalidOperationException' occurred in PresentationFramework.dll
Step into: Stepping over non-user code 'System.Windows.Threading.ExceptionWrapper.TryCatchWhen'
A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
Step into: Stepping over non-user code 'System.Windows.RoutedEventArgs.InvokeEventHandler'
Step into: Stepping over non-user code 'System.Windows.RoutedEventArgs.InvokeHandler'
Step into: Stepping over non-user code 'System.Windows.UIElement.RaiseEventImpl'
Step into: Stepping over non-user code 'System.Windows.RoutedEventArgs.InvokeHandler'
Step into: Stepping over non-user code 'System.Windows.UIElement.ReRaiseEventAs'
Step into: Stepping over non-user code 'System.Windows.RoutedEventArgs.InvokeHandler'
Step into: Stepping over non-user code 'System.Windows.UIElement.RaiseEventImpl'
Step into: Stepping over non-user code 'System.Windows.UIElement.RaiseEvent'
Step into: Stepping over non-user code 'System.Windows.Threading.Dispatcher.InvokeImpl'
Step into: Stepping over non-user code 'System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop'
Step into: Stepping over non-user code 'System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner'
Step into: Stepping over non-user code 'SchedApp.SchedAppFrame.Dispose'
Step into: Stepping over non-user code 'System.ComponentModel.Component.Dispose'
Step into: Stepping over non-user code 'System.Windows.Forms.ApplicationContext.Dispose'
Step into: Stepping over non-user code 'System.Windows.Forms.Application.ThreadContext.DisposeThreadWindows'
Step into: Stepping over non-user code 'System.Windows.Forms.Application.ThreadContext.Dispose'

I'm not quite sure where to look for more information.  So the FrameworkElement coming into the FixedDocument is of type Telerik.Windows.Controls.RadGridView, is the Arrange method being overridden?  How would I troubleshoot what looks like an exception in the System.Windows.Point.Point structure?

Vlad
Telerik team
 answered on 04 Oct 2010
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
PersistenceFramework
DataPager
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
ProgressBar
Sparkline
LayoutControl
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
Rating
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?