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

[Solved] SL4 beta GroupDescriptor Invalid Cast Exception

4 Answers 108 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gary Paul
Top achievements
Rank 1
Gary Paul asked on 12 Jan 2010, 06:03 PM
I'm trying to programatically set a grouping:

private void btnCategorized_Click(object sender, RoutedEventArgs e)
{
    var gd = new GroupDescriptor();
    gd.Member="Category";
    gd.SortDirection=ListSortDirection.Ascending;
    grdProperties.GroupDescriptors.Add(gd);
}

This all steps through fine, but when I leave the message it immediately brings up the debugger which claims it can't attach to a crashing process.

If I bypass the Debugger the code goes to the Application Unhandled Event and states: Invalid Cast Exception.

I'm using VS2010 beta 2, in a SL 4 project using RadControls_for_Silverlight_2009_3_1208_TRIAL

Any suggestions?

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 13 Jan 2010, 06:52 AM
Hi,

Can you post the stack trace?

Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Gary Paul
Top achievements
Rank 1
answered on 18 Jan 2010, 02:24 PM
I never get to where I can get the stack... Here are the screens I get before a total crash..
0
Vlad
Telerik team
answered on 21 Jan 2010, 07:14 AM
Hello Gary,

Please open support ticket and send us small project where we can reproduce and debug this.

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Milan
Telerik team
answered on 27 Jan 2010, 11:18 AM
Hello Gary Paul,

We were unable to reproduce the error so far but more information is available in the support ticket that you have created.


All the best,
Milan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Gary Paul
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Gary Paul
Top achievements
Rank 1
Milan
Telerik team
Share this question
or