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

RadPopupForm

3 Answers 85 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Terjene
Top achievements
Rank 2
Terjene asked on 10 Mar 2010, 03:56 PM
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); 
            } 
        } 

3 Answers, 1 is accepted

Sort by
0
Accepted
Deyan
Telerik team
answered on 11 Mar 2010, 08:48 AM
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.
0
Brenton House
Top achievements
Rank 1
answered on 01 Jun 2010, 02:15 PM
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?
0
Deyan
Telerik team
answered on 04 Jun 2010, 03:27 PM
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.
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
Terjene
Top achievements
Rank 2
Answers by
Deyan
Telerik team
Brenton House
Top achievements
Rank 1
Share this question
or