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

Trouble with different RadGridView controls defined in different tabs - 2011-Q1

4 Answers 109 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Naresh Chetpelly
Top achievements
Rank 1
Naresh Chetpelly asked on 23 Mar 2011, 06:59 PM
Hello,

Scenario:
I'm getting an un-handled exception (System.Reflection.TargetException: Object does not match target type), when I place RadGridView controls in different tabs.

Version info:
I'm using Silverlight controls 2011 Q1 (2011.1.223.1040), trial version.
I haven't faced this issue with 2010 Q3 controls.

Sample code:
<Grid x:Name="LayoutRoot" Background="White">
         
        <sdk:TabControl Name="tabControl1">
             
            <sdk:TabItem Header="Tab 1" Name="tabItem1">
                <telerik:RadGridView  x:Name="tab1GridView" />
            </sdk:TabItem>
 
            <sdk:TabItem Header="Tab 2" Name="tabItem2">
                <telerik:RadGridView  x:Name="tab2GridView" />
            </sdk:TabItem>
 
        </sdk:TabControl>
         
    </Grid>

Please suggest. Thank you.

- Naresh

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 24 Mar 2011, 08:10 AM
Hello,

 How the grid is bound in your case? Are you using our VirutalQueryableCollectionView? We've already fixed (in our latest build) an issue related to sub properties, RadGridView validation and VirutalQueryableCollectionView with exactly the same exception. 

All the best,
Vlad
the Telerik team
0
Naresh Chetpelly
Top achievements
Rank 1
answered on 24 Mar 2011, 02:36 PM
I haven't the bind the GridView to any data source yet. I could recreate the issue just with the sample code that I have provided. Please let me know if you need anymore details.

Thanks,
Naresh
0
Vlad
Telerik team
answered on 24 Mar 2011, 02:51 PM
Hello,

 I've tried this however everything worked normally on my end - you can check the attached project for reference.

Greetings,
Vlad
the Telerik team
0
Naresh Chetpelly
Top achievements
Rank 1
answered on 24 Mar 2011, 03:14 PM
Hey Vlad,

Thanks for the quick response. I have tried running it in my machine and it works fine. It seems that the problem has been fixed in latest release (2011.1.322.1040) as I was facing trouble with 2011.1.223.1040 version controls. I will look into upgrading to the latest version. Thank you very much for the help.

Naresh
Tags
GridView
Asked by
Naresh Chetpelly
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Naresh Chetpelly
Top achievements
Rank 1
Share this question
or