This is a migrated thread and some comments may be shown as answers.

CUIT is not able to access the control placed inside the cell template for RadTreeListView

3 Answers 33 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Sirisha
Top achievements
Rank 1
Sirisha asked on 28 Feb 2014, 12:01 PM
Hi Team,

We are using cell templates for the cells inside the RadTreeListView. In .Net 4.5 and with latest telerik package CUIT is not able to navigate to the controls placed inside the cell template where as in .Net 4.0 we were able to automate actions on it using CUIT.

Following is the sample xaml file code:
<Window x:Class="MainWindow"
             xmlns:local="clr-namespace:WpfApplication1"
     Height="350" Width="525" Title="InterWalmartGraph Cafeteria Grocery Store"
    
    <Window.Resources
        <DataTemplate x:Key="ReadonlyTextCellTemplate"
            <DockPanel Margin="1"
                <TextBlock Text="{Binding Count}"/> 
                <Button Content="{Binding Name}" /> 
            </DockPanel
        </DataTemplate
    </Window.Resources>      
        
    <Grid x:Name="LayoutRoot"
        <telerik:RadTreeListView x:Name="radTreeListView"
                            AutoGenerateColumns="False"
            <telerik:RadTreeListView.ChildTableDefinitions
                <telerik:TreeListViewTableDefinition ItemsSource="{Binding Items}" /> 
            </telerik:RadTreeListView.ChildTableDefinitions
            <telerik:RadTreeListView.Columns
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}"
                                    Header="Name" /> 
                <telerik:GridViewDataColumn Header="Count" CellTemplate="{StaticResource ReadonlyTextCellTemplate}" /> 
            </telerik:RadTreeListView.Columns
        </telerik:RadTreeListView>   
    </Grid>      
</Window>

Regards,
Sirisha

3 Answers, 1 is accepted

Sort by
0
Yordanka
Telerik team
answered on 05 Mar 2014, 11:16 AM
Hi Sirisha,

Thank you for the report. Indeed, there are some problems when .NET 4.5 binaries are used and we are aware of them. Actually, our support for CodedUI was developed for .NET4.0 and unfortunately, Microsoft made a lot of breaking changes with .NET 4.5. That's why incompatibility issues were introduced. We are currently stabilizing our support for .NET4.0 and working closely with Microsoft to address the incompatibility issues with .NET4.5. We hope all the improvements will be introduced with Q2 2014 official version.

Regards,
Yordanka
Telerik
 

DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!

 
0
Sirisha
Top achievements
Rank 1
answered on 12 Jun 2014, 11:15 AM
Hi Yordanka,

We are waiting for the Telerik Official build release with the fix. Can we expect any hotfix on top of 2014 Q1 now?
We have got an internal build, 2014_1_0407, wihich is having a fix. We have used it in our projects but we are seeing application crashes with it. following is the error message. We need an official build to move forward.

=======================================
System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Windows.Automation.Peers.AutomationPeer.EnsureChildren()
   at System.Windows.Automation.Peers.AutomationPeer.GetChildren()
   at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)
   at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)
   at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)
   at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)
   at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)
   at System.Windows.Automation.Peers.AutomationPeer.ValidateConnected(AutomationPeer connectedPeer)
   at System.Windows.Automation.Peers.AutomationPeer.RaiseFocusChangedEventHelper(IInputElement newFocus)
   at System.Windows.Input.KeyboardDevice.ChangeFocus(DependencyObject focus, Int32 timestamp)
   at System.Windows.Input.KeyboardDevice.Focus(DependencyObject focus, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
   at System.Windows.Input.KeyboardDevice.Focus(IInputElement element)
   at System.Windows.UIElement.Focus()
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonDown(MouseButtonEventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   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.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   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.Input.InputManager.ProcessStagingArea()
   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 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, 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.Window.ShowHelper(Object booleanBox)
   at System.Windows.Window.ShowDialog()
   at Intergraph.UX.WPF.Controls.UxtWindow.ShowDialog()
   at Intergraph.SPClient.SPCLDebugUtilities.SPCLMessageBoxLog.DisplayMessageBoxWPF(String pstrMessageToUser, String pstrMessageType, String pstrLogFolderLocation)
   at Intergraph.SPClient.SPCLDebugUtilities.SPCLMessageLogger.LogException(Exception pexException, eComponentName pstrComponentName)
   at SPCLFormMain.ToolStripMenuItemSmartPlantUIRetrieve_Click(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


0
Yordanka
Telerik team
answered on 13 Jun 2014, 10:45 AM
Hello Sirisha,

The Q2 2014 official version will contain the fix for the problem resolved in 2014.1.0407 internal build. It is expected to be released next week.

As to the reported exception - from the provided StackTrace it seems there is no Telerik related code, so we are not sure what could cause it. Could you please give us more details on the exact scenario and the exception, so we to be able to research it further?

Regards,
Yordanka
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
TreeListView
Asked by
Sirisha
Top achievements
Rank 1
Answers by
Yordanka
Telerik team
Sirisha
Top achievements
Rank 1
Share this question
or