RadPopupForm

4 posts, 1 answers
  1. Terjene
    Terjene avatar
    1 posts
    Member since:
    Nov 2007

    Posted 10 Mar 2010 Link to this post

    Hi!

    I've reinstalled my computer, and now my project won't build.
    "The type or namespace name 'RadPopupForm' could not be found (are you missing a using directive or an assembly reference?)"  

    I'm using VS 2005 and WinForms 2010.1.10.308_dev

    If I comment out this section, everything else is ok. And it was ok before reinstalling windows7.

            private void radComboBoxAgreement_DropDownOpened(object sender, EventArgs e) 
            { 
                //getting the popup form which size should be set   
                RadPopupForm popup = (RadPopupForm)radComboBoxAgreement.Items[0].ElementTree.Control; 
     
                int desiredWidth = (int)radComboBoxAgreement.ComboBoxElement.ListBoxElement.Viewport.DesiredSize.Width; 
                RadScrollLayoutPanel scrollPanel = (RadScrollLayoutPanel)radComboBoxAgreement.ComboBoxElement.ListBoxElement.Children[2]; 
     
                if (desiredWidth > radComboBoxAgreement.Width) 
                { 
                    if (scrollPanel.CanVerticalScroll) 
                    { 
                        desiredWidth += radComboBoxAgreement.ComboBoxElement.ListBoxElement.ScrollThickness; 
                    } 
     
                    //adding border width (both left and right) of the inner listbox element.    
                    desiredWidth += radComboBoxAgreement.ComboBoxElement.ListBoxElement.BorderThickness.Horizontal; 
     
                    popup.Size = new Size(desiredWidth, popup.Height); 
                } 
            } 

  2. Answer
    Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 11 Mar 2010 Link to this post

    Hello Knut,

    Thanks for contacting us and for reporting this issue. RadPopupForm type has been replaced by RadPopupControlBase class since Q3 2009. I believe you have used earlier version before upgrading to Q1 2010 and therefore you experience this issue. This is not related to Windows 7.

    You can now directly cast to RadPopupControlBase or ComboPopupForm type instead of RadPopupForm.

    I hope this is helpful.

    Regards,
    Deyan
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Brenton House
    Brenton House avatar
    2 posts
    Member since:
    Oct 2008

    Posted 01 Jun 2010 Link to this post

    What happened to the WireEvents() and UnwireEvents() methods?  or OnOwnerResize or OnOwnerMove?

    I searched through the release notes but I did not find the documentation about these breaking changes.  Do you know where I can find them?
  5. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 04 Jun 2010 Link to this post

    Hello Brenton,

    The RadPopupControlBase class is in fact an entirely new implementation of a popup form which is not compatible with RadPopupForm. In general, the WireEvents and UnwireEvents were methods for internal use and thus not documented. You can use the popup's constructor and the Dispose method as the points where you wire/unwire the events which you are using in your project.

    The OnOwnerResize and OnOwnerMove methods are also not relevant to the current context. In the RadPopupForm implementation these events were used to close the popup when the hosting form of the popup's owner is moved/resized. In the RadPopupControlBase class this is automatically done by a PopupManager.

    Could you please share with us the scenario in which you are using these events so that we can better assist you on how to migrate your projects to the new functionality?

    Thank you for your time.

    Regards,
    Deyan
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top