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

Error when editing cell child

5 Answers 46 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Reimund
Top achievements
Rank 1
Reimund asked on 04 Mar 2011, 10:07 AM
Hi,
I get an error 'Object does not match target type' when I want to edit a cell on  a child line. Editing the parent line works.  Same effect occors in the RadTreeListView demo after changing IsReadOnly to false.

Call stack is:
   at System.Reflection.RuntimeMethodInfo.CheckConsistency(Object target)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.SecurityUtils.MethodInfoInvoke(MethodInfo method, Object target, Object[] args)
   at System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component)


XAML:
<telerik:RadTreeListView HorizontalAlignment="Left" Margin="12,12,0,0" Name="radTreeListView1" VerticalAlignment="Top" Height="209" Width="491" ItemsSource="{Binding Source={StaticResource Data}}" AutoGenerateColumns="False"  IsReadOnly="False">
            <telerik:RadTreeListView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=Text}" IsReadOnly="True"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=Text2}" IsReadOnly="False">
                </telerik:GridViewDataColumn>
            </telerik:RadTreeListView.Columns>
            <telerik:RadTreeListView.ChildTableDefinitions>
                <telerik:TreeListViewTableDefinition ItemsSource="{Binding Path=Details}" />
            </telerik:RadTreeListView.ChildTableDefinitions>
        </telerik:RadTreeListView>


Regards Reimund

5 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 04 Mar 2011, 10:33 AM
Hello Reimund,

 Can you post more info about the version?

Regards,
Vlad
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Reimund
Top achievements
Rank 1
answered on 04 Mar 2011, 10:39 AM
Sorry,
version is
Telerik RadControls for WPF
2010.03.1110.40

Reimund
0
Vlad
Telerik team
answered on 04 Mar 2011, 10:52 AM
Hi Reimund,

 Please try our latest service pack (or even latest internal build). We believe that this issue is already fixed. 

Best wishes,
Vlad
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Reimund
Top achievements
Rank 1
answered on 04 Mar 2011, 11:41 AM
Now I'm using 2010.3.1314.40 (WPF Q3 2010 SP 1). No improvement, same behavior as before.

Reimund

PS: If there is  a better version, please send an appropriate link.

0
Vlad
Telerik team
answered on 07 Mar 2011, 02:13 PM
Hello,

Please open support ticket and send us an example where we can reproduce this exception. 

Regards,
Vlad
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
TreeListView
Asked by
Reimund
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Reimund
Top achievements
Rank 1
Share this question
or