RadTimePicker on Behavior violates the constraint of type parameter

4 posts, 0 answers
  1. Premraj
    Premraj avatar
    3 posts
    Member since:
    Nov 2011

    Posted 23 Jul 2013 Link to this post

    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.
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 25 Jul 2013 Link to this post

    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 >>
  3. DevCraft banner
  4. Premraj
    Premraj avatar
    3 posts
    Member since:
    Nov 2011

    Posted 27 Nov 2013 Link to this post

    Hi Didie

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

    Thanks
    Premraj
  5. Wayne
    Wayne avatar
    36 posts
    Member since:
    May 2013

    Posted 04 Jul Link to this post

    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.  
Back to Top