Telerik Forums
UI for WPF Forum
4 answers
168 views
Hi there,

I did add the RadWindow class to my project and I found an exception occuring somehow in a random fashion.

There are serveral RadWindows in my application and they do work fine. But when I do add the ShowDialog of one of the RadWindows to the SelectionChanged event of a RadTreeView on my form, I do receive the exception shown below when closing the window again. This exception does not always show up, it only occures in a somehow random way. As you can see, there seems to be a problem in the OnThumbDragStarted event handler or one of the methods it is using.

I'm using the Q1 2011 version of the telerik libraries as I did update the version when I was working on this issue, but the update did not solve the problem.

Do you guys have an idea why I do receive this exception?

<P>Parameter name: otherVisual</P>
<P>at System.Windows.Media.Visual.FindCommonVisualAncestor(DependencyObject 
otherVisual)</P>
<P>at System.Windows.Media.Visual.TransformToVisual(Visual visual)</P>
<P>at Telerik.Windows.Controls.RadWindow.OnThumbDragStarted(Object sender, 
DragStartedEventArgs e) in 
c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Window\RadWindow.cs:line 
2125</P>
<P>at 
System.Windows.Controls.Primitives.DragStartedEventArgs.InvokeEventHandler(Delegate 
genericHandler, Object genericTarget)</P>
<P>at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object 
target)</P>
<P>at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, 
RoutedEventArgs routedEventArgs)</P>
<P>at System.Windows.EventRoute.InvokeHandlersImpl(Object source, 
RoutedEventArgs args, Boolean reRaised)</P>
<P>at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, 
RoutedEventArgs args)</P>
<P>at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)</P>
<P>at 
System.Windows.Controls.Primitives.Thumb.OnMouseLeftButtonDown(MouseButtonEventArgs 
e)</P>
<P>at System.Windows.UIElement.OnMouseLeftButtonDownThunk(Object sender, 
MouseButtonEventArgs e)</P>
<P>at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate 
genericHandler, Object genericTarget)</P>
<P>at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object 
target)</P>
<P>at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, 
RoutedEventArgs routedEventArgs)</P>
<P>at System.Windows.EventRoute.InvokeHandlersImpl(Object source, 
RoutedEventArgs args, Boolean reRaised)</P>
<P>at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, 
RoutedEventArgs args, RoutedEvent newEvent)</P>
<P>at System.Windows.UIElement.OnMouseDownThunk(Object sender, 
MouseButtonEventArgs e)</P>
<P>at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate 
genericHandler, Object genericTarget)</P>
<P>at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object 
target)</P>
<P>at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, 
RoutedEventArgs routedEventArgs)</P>
<P>at System.Windows.EventRoute.InvokeHandlersImpl(Object source, 
RoutedEventArgs args, Boolean reRaised)</P>
<P>at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, 
RoutedEventArgs args)</P>
<P>at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)</P>
<P>at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean 
trusted)</P>
<P>at System.Windows.Input.InputManager.ProcessStagingArea()</P>
<P>at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)</P>
<P>at System.Windows.Input.InputProviderSite.ReportInput(InputReport 
inputReport)</P>
<P>at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, 
InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, 
Int32 wheel)</P>
<P>at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, 
WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)</P>
<P>at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 
msg, IntPtr wParam, IntPtr lParam, Boolean& handled)</P>
<P>at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr 
lParam, Boolean& handled)</P>
<P>at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)</P>
<P>at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate 
callback, Object args, Int32 numArgs)</P>
<P>at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, 
Delegate method, Object args, Int32 numArgs, Delegate catchHandler)</P>
<P>at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority 
priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)</P>
<P>at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr 
wParam, IntPtr lParam)</P>
<P>at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)</P>
<P>at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame 
frame)</P>
<P>at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)</P>
<P>at System.Windows.Threading.Dispatcher.Run()</P>

at

Christian
Top achievements
Rank 2
 answered on 27 Apr 2011
0 answers
104 views
hi   
i need serialize RadGridView Items to xml file and can deserialize  items.please help me
Davood
Top achievements
Rank 1
 asked on 27 Apr 2011
1 answer
62 views
 hello, Ihave a problem please help me.
I want routate telerik chart like this website charts, Infact I want change zero point position in chart.
http://www.otoconsult.com/audiqueen/Audiometry.aspx
farid
Top achievements
Rank 1
 answered on 27 Apr 2011
3 answers
184 views
I have my custom VirtualQueryableCollectionView to connect to my database.
I can read data an sorting. Now i would like to do grouping. When i drag and drop column to group panel to group by this column it creates one group expander with null value. When i expand this expander there is all my grid row.
Can you help me how can i create my custom grouping?

Thanks Josef.
public class VirtualQuery : VirtualQueryableCollectionView
   {
 
       WPF.Models.VirtualQuery _cacheVirtualQuery;
       CacheConnection _conn;
       public VirtualQuery(WPF.Models.VirtualQuery cacheVirtualQuery)
       {
           LoadSize = 1000;
           _cacheVirtualQuery = cacheVirtualQuery;
           _conn = cacheVirtualQuery.Connection;
           _cacheVirtualQuery.CreateQuery();
           VirtualItemCount = Convert.ToInt16(_cacheVirtualQuery.VirtualItemCount);
           ItemsLoading += VirtualQuery_ItemsLoading;
       }
 
 
       private void VirtualQuery_ItemsLoading(object sender, VirtualQueryableCollectionViewItemsLoadingEventArgs e)
       {
           SetUpCacheQuery();
           _cacheVirtualQuery.ItemsLoading(e.StartIndex, e.ItemCount);
           VirtualItemCount = Convert.ToInt16(_cacheVirtualQuery.VirtualItemCount);
           #region smazat dynamicky objekt pomale
           /*CacheDynamicObject[] DataContext = new CacheDynamicObject[_cacheVirtualQuery.QueryItems.Count] ;
           for (int i = 0; i < _cacheVirtualQuery.QueryItems.Count; i++)
           {
               DataContext[i] = new CacheDynamicObject(_cacheVirtualQuery.QueryItems[i] as CacheArrayOfDataTypes);
           }*/
           #endregion
           object[] DataContext1 = new object[_cacheVirtualQuery.QueryItems.Count];
           for (int i = 0; i < _cacheVirtualQuery.QueryItems.Count; i++)
           {
               DataContext1[i] = new Dictionary<string, string>(_cacheVirtualQuery.QueryItems[i] as CacheArrayOfDataTypes); ;
           }
           Load(e.StartIndex, DataContext1);
           _cacheVirtualQuery.QueryItems.Clear();
           _cacheVirtualQuery.Connection.ForceSync();
       }
 
       private void SetUpCacheQuery()
       {
           _cacheVirtualQuery.SortDescriptors.Clear();
           foreach (Telerik.Windows.Controls.GridView.ColumnSortDescriptor item in SortDescriptors)
           {
               WPF.Models.SortDescriptor desc = new WPF.Models.SortDescriptor(_conn);
               desc.SortUniqueName =  item.Column.UniqueName;
               desc.SortDirection = item.SortDirection.ToString();
               _cacheVirtualQuery.SortDescriptors.Add(desc);
           }
       }
   }
grouping?
Milan
Telerik team
 answered on 27 Apr 2011
2 answers
116 views
Hi,

I have an issue with the WPF RadDocking Control (Version Q3 2010). 

I implement the RadDocking on my Window, some RadPane contains Usercontrol.

Here's the XAML :
<telerikDocking:RadSplitContainer InitialPosition="DockedLeft" Orientation="Vertical">
                    <telerikDocking:RadPaneGroup>
                        <telerikDocking:RadPane Header="Overview" CanUserClose="False" >
                            <my:OverviewControl  Margin="5 5 5 5" x:Name="ucPlanSituation"/>
                        </telerikDocking:RadPane>
                    </telerikDocking:RadPaneGroup>
 
                    <telerikDocking:RadPaneGroup>
                        <telerikDocking:RadPane Header="Légende" CanUserClose="False"  >
                            <my:TocControl Margin="5 5 5 5" x:Name="ucLegende"/>
                        </telerikDocking:RadPane>
                    </telerikDocking:RadPaneGroup>
 </telerikDocking:RadSplitContainer>

My two usercontrols (TocControl and OverviewControl) have some ActiveX controls nested inside. When the pane is docked it displays perfectly but as soon as I pin or make it floating it doesn't display anymore.

Do you know a workaround to fix this issue ? 

Thank you and I wish you a great day.


George
Telerik team
 answered on 27 Apr 2011
1 answer
89 views

Hello,

 

I have a class “Priority” which derives from the Category class and fires PropertyChanged when (New) CategoryBrush changes.

I assign the collection of Priority objects to the CategoriesSource property of the ScheduleView control.

The Edit window loads the list fine, but when the brush color of the Category aka Priority changes in the configuration window - the Edit window doesn’t reflect the change. Other controls bound to the CategoryBrush property of the same collection change the color but not the ScheduleView.

Can you see why?

 


Thank you.

Rosi
Telerik team
 answered on 27 Apr 2011
3 answers
91 views

Hi,
  I have just started my adventure with WPF. I have heard that it is dedicated for graphical applications. I'm interested in creating a control that handles linear chart and transform it into chart in a circle. I just wonder if there is some easy way to do that?

Thank you in advance for any reply.

Vladimir Milev
Telerik team
 answered on 27 Apr 2011
1 answer
151 views
I was excited to get a new masking control, but this soon turned to disappointment.  Our users have difficulty with these controls as they are not intuitive.  They expect it to behave the same as if you were entering something into an Excel spreadsheet cell and I don't blame them.  It's confusing to me as well.  I've tried all kinds of variations of textmode, autofill properties, and InputBehavior to get a mask n5.2 to behave properly.  Essentially I think it should behave just as a regular textbox while entering data and display according to the mask when viewing the data.
Alex Fidanov
Telerik team
 answered on 27 Apr 2011
10 answers
954 views
Hi,

Could you please tell me how to disable tabbing inside grid.
Tabbing inside grid is taking me to next cell. I don't want that to happen.

Thanks
Kashi Reddy 

Nedyalko Nikolov
Telerik team
 answered on 27 Apr 2011
2 answers
158 views
Hi,

I'm trying to upgrade my Toolbox to the latest release (2011 Q1 SP1 - 2011.1.419.35) but I keep getting the following error:

Telerik VSExtensions: UpgradeToolbox: Access to registry key 'HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\9.0\Packages\{2c298b35-07da-45f1-96a3-be55d91c8d7a}\Toolbox' is denied. (Toolbox upgrade failed)

I installed the update via the update tool and all worked fine. Then I accidently selected to roll back the Toolbox to the previous version. Now I can't get the latest toolbox to show.

I'm using VS2008. Does anyone know how I can clear the toolbox and get the newer version to show up again? I've tried re-installing the latest release MSI but it hasn't done the trick.

Thank you for your time,

Rob
Robert
Top achievements
Rank 1
 answered on 26 Apr 2011
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
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?