2 posts, 0 answers
  1. Daniel
    Daniel avatar
    17 posts
    Member since:
    Oct 2013

    Posted 08 Sep 2015 Link to this post

    I wanted to use RadPopupEditor with a gridview as an associated Control to implement a multiselectmultiColumncombobox.

    In Design time, my User Control has a radPopUpEditor and a gridview. I am trying to set the value of radPopUpEditor.AssociatedControl within the property window when an exception occurs saying "Error using the dropdown: Unable to cast object of type 'System.Windows.Forms.UserControl' to type 'System.Windows.Forms.Form'".

    I did the same on a form with the same controls (a radPopUpEditor and a radgridview).
    Though No Error exception occurs, the gridview is not available choice in the AssociatedControl Property.

    With this, I have two questions.

    1. Is it possible to use radPopUpEditor within a User Control? 
    2. what type of controls can I use to as RadPopupEditor.AssociatedControl?

  2. Dimitar
    Dimitar avatar
    1335 posts

    Posted 08 Sep 2015 Link to this post

    Hi Daniel,

    Thank you for contacting us.

    Yes, you can use RadPopupEditor within a user control. You can only associate the control with RadPopupContainer. Please note that you can put any controls in the RadPopupContainer. Detailed information about this is available here:
    I hope this helps. Should you have any other questions do not hesitate to ask.


  3. DevCraft banner
Back to Top