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

RadTimePicker on Behavior violates the constraint of type parameter

3 Answers 29 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Premraj
Top achievements
Rank 1
Premraj asked on 23 Jul 2013, 10:17 AM
Hi Guys,

I'm facing the following error message. 

GenericArguments[0], 'Telerik.Windows.Controls.RadTimePicker', on 'System.Windows.Interactivity.Behavior`1[T]' violates the constraint of type parameter 'T'.

Could you please suggest about root cause of the issue and how to fix it. I'm getting same kind of error on RadGridView also.

Thanks in Advance.

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 25 Jul 2013, 12:56 PM
Hello,

Based on the exception - you are passing a non supported type in the creation of a behavior. Please, take into account that you must assign a type that derives from DependencyObject (in case of RadGridView, GridViewColumnBase passes this requirement). 
 

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Premraj
Top achievements
Rank 1
answered on 27 Nov 2013, 02:28 PM
Hi Didie

Can you explain me bit more what you mean to say?

Thanks
Premraj
0
Hannah
Top achievements
Rank 2
answered on 04 Jul 2016, 05:41 AM
Got the same thing here, except all I did was delete the offending control and then undo the delete, and that fixed the issue up.  
Tags
GridView
Asked by
Premraj
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Premraj
Top achievements
Rank 1
Hannah
Top achievements
Rank 2
Share this question
or