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

Exception when reordering columns

2 Answers 75 Views
GridView
This is a migrated thread and some comments may be shown as answers.
JP
Top achievements
Rank 1
JP asked on 23 Mar 2009, 05:04 PM
Hello,

I have recently run into an issue where an exception gets thrown after reordering the columns in my grid (version 2009.1.312.35).  I have column filtering enabled and have a couple of custom filters applied to the grid, such as a text box for searching the title and description of the objects that are bound to the grid.  Whenever I drag and drop a column header to reorder the columns, I get the following exception.  Is this a bug in the grid or am I doing something wrong in my code?

Here is part of the stack trace.  Please let me know if you need any other information.

2009-03-23 11:40:19,481 [11] ERROR - Unhandled exception.  System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidCastException: Unable to cast object of type 'IRC.Gear.WorkItemManager.Controls.Filters.TitleDescriptionFilter' to type 'Telerik.Windows.Data.FieldFilterDescription'.
   at Telerik.Windows.Controls.GridView.GridViewDataControl.AssignFilterDescriptionsToControls()
   at Telerik.Windows.Controls.GridView.GridViewItemsControl.ReorderColumns(Int32 oldIndex, Int32 newIndex)
   at Telerik.Windows.Controls.GridView.GridViewItemsControl.ColumnsReorderingRequested(Object sender, RadRoutedEventArgs e)

Thanks,

Joel



2 Answers, 1 is accepted

Sort by
0
Accepted
Stefan Dobrev
Telerik team
answered on 25 Mar 2009, 03:19 PM
Hello Joel,

This is a bug in our source code. We will fix it for the upcoming service pack release.

Thanks for reporting this. I have updated your Telerik points.

Greetings,
Stefan Dobrev
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
JP
Top achievements
Rank 1
answered on 25 Mar 2009, 05:44 PM
Great, thanks Stefan.  I look forward to the service pack release.

Joel
Tags
GridView
Asked by
JP
Top achievements
Rank 1
Answers by
Stefan Dobrev
Telerik team
JP
Top achievements
Rank 1
Share this question
or