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

Framework 4.0 migration make visual effects disapear

1 Answer 48 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Alexandre
Top achievements
Rank 1
Alexandre asked on 06 Sep 2012, 07:35 AM
Hi,
I got a new problem in my winform application after a framework version migration (3.5 to 4.0) and I did lost all visual effects for gridviews (Mouseover, row selection, etc.) it look likes the grid have been disabled but it's not. It look ok on design time but the issue appears on runtime. I do not use theme i usually use controldefault theme. I did try to edit UI elements directly but got this error :
{"Index was out of range. Should not be negative and must be less than the size of the collection.
Parameter name: index "}
Stack Trace:
   à System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index)
   à Telerik.WinControls.RadElementCollection.get_Item(Int32 index)
   à ShowPurchasesOrders.InitializeComponent() dans C:\DparsDevelopment\DPARS_POS_WinClient\ShowPurchasesOrders.Designer.vb:ligne 188
   à ShowPurchasesOrders..ctor()
   à Temp.SP_PopupClicked() dans C:\DparsDevelopment\DPARS_POS_WinClient\Temp.vb:ligne 26

Thanks
Alex

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 06 Sep 2012, 12:56 PM
Hi Alex,

Thank you for writing.

You should not attempt do manually modify the hierarchy of elements as RadGridView is virtualized and such changes may lead to unforeseen results.

As to the issue that you are experiencing, it may occur if the Telerik assemblies referenced by your project have different .NET version. As of Q1 2012 SP1 we distribute two builds of the controls - one built for .NET 4.0 and one built for .NET 2.0. You can recognize these builds by the last number of the version number of the assemblies. For example, if an assembly has the version number xxxx.x.xxx.40, this means that it is from the .NET40 build. So, please check and make sure that all referenced assemblies in your solution end up with 40 at the end. This should resolve the issue you have.

I hope this helps. Let me know if you have additional questions.

Greetings,
Nikolay
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
GridView
Asked by
Alexandre
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or