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

Problem error with PanelBar and Gallery Component combination.

10 Answers 102 Views
Panelbar (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.
GUIjunkie
Top achievements
Rank 1
GUIjunkie asked on 05 Jun 2007, 08:57 PM
i'm getting a weird error message when using your gallery component in combination with a panelbar groupelement that is set with EnableHostControlMode to true.

the project compiles and runs fine, but this error pops up however many times you have EnableHostControlMode set to true.

the error reads: 
Error setting property "EnableHostControlMode" in class "Telerik.WinControls.UI.RadPanelBarGroupElement" to value "True".

it goes on to say that the element has already been added.

thanks guys...

06/06/07 - UPDATE
i was able to eliminate this error by toggling the said property to false, then toggle back to true through code.

why would there be such an issue with this, and a few other controls, to where the design time functionality acts flaky at times?

overall though, i'm liking the product thus far....

thanks.....

10 Answers, 1 is accepted

Sort by
0
Jordan
Telerik team
answered on 07 Jun 2007, 08:10 AM
Hello John,

Glad to hear that you managed to solve the problem. In order to check where the reason for this lies, we tried to reproduce this behavior, but to no avail. Will it be possible to send us a simple project that demonstrates the issue? We would like to research what is going on and how the code and/or other controls affect the proper behavior. Just open a support ticket and attach the project there. Your assistance will be much appreciated. Thanks in advance.
 

Kind regards,
Jordan
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
GUIjunkie
Top achievements
Rank 1
answered on 07 Jun 2007, 04:15 PM
thanks for the reply.  we are in the process of purchasing six licenses.  once that goes through, i will log a support ticket.

0
Adrian Halid
Top achievements
Rank 1
answered on 15 Oct 2007, 02:32 AM
Hi,

I am also getting this error.

How do I send you the test project?
0
Jordan
Telerik team
answered on 15 Oct 2007, 01:21 PM
Hi Adrian Halid,

Please open a support ticket and send us the test project.

You can do so from this link:

http://www.telerik.com/client.net/my-support-tickets/my-support-tickets.aspx

Sincerely yours,
Jordan
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
darcher
Top achievements
Rank 1
answered on 23 Oct 2007, 04:21 AM
Hi,

I'm getting the same error with the PanelBar in a winforms app.  The background on this scenario is:

  • The main form uses a PanelBar with EnableHostControlMode = true
  • I created a second popup form with a second PanelBar.  As soon as I tick the EnableHostControlMode box on the second form, the error as described above appears.
  • Toggling the EnableHostControlMode to False makes the error go away
I thought it might be an object naming conflict, however I can't seem to get the error to disappear.

Did you find a solution in your testing?

Regards,
David.
0
Boyko Markov
Telerik team
answered on 23 Oct 2007, 02:41 PM
Hello David,

We could not reproduce the behavior you're describing. In order to allow us to further investigate, could you send us a sample test project which is reproducing the erroneous behavior?

In order to attach the project, you'll need to open a new support ticket. You can do so from this link:

http://www.telerik.com/client.net/my-support-tickets/my-support-tickets.aspx

Thank you for writing. We are looking forward to your response.

Greetings,
Boyko Markov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
ManniAT
Top achievements
Rank 2
answered on 19 Dec 2007, 02:43 PM
I get the same error message every time I build my project.
There are no runtime problems!!!

As long as I add "simple controls" everything works fine.
But when I add a UserControl to one of the panels I get the error message all the time!!

---------------------------

---------------------------
Error setting property "EnableHostControlMode" in class "Telerik.WinControls.UI.RadPanelBarGroupElement" to value "True".

The error was:
System.InvalidOperationException: Element already added

   bei System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component, Object value)

   bei Telerik.WinControls.Design.RadObjectCustomPropertyDescriptor.SetValue(Object component, Object value)
---------------------------
OK  
---------------------------

This happens even if the user control is an empty control with no code at all.

regards

Manfred

0
Boyko Markov
Telerik team
answered on 20 Dec 2007, 04:19 PM
Hello Manfred Pohler,

Thank you for writing. This is indeed unexpected behavior.

Could you please tell me what is the verison of RadControls for WinForms you are currently using.

We are unable to reproduce the behavior you described. Could you send me a simple project which reproduces it. This will help us address any potential issue faster.

If you have additional questions, please contact us.

All the best,
Boyko Markov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
ManniAT
Top achievements
Rank 2
answered on 15 Jan 2008, 01:55 PM
Hi,

sry for the delay - we habe been a bit busy :)

Anyhow I attached a project.
We use RC Q2 2007.

What I did was:
a.) Create a winform project.
b.) Add a panelbar
c.) Add two panels
d.) Add a usercontrol to the project
e.) Enabled "Host Control" on the first panel
f.) Dragged the UC to the panel

An now I get that Error message every time a build is done.

Regards

Manfred
PS: I use VS2005 German on winxp pro german
PPS: could not find an "attach button" - so I placed the file on a server
Here the Link: http://www.pp-p.com/TestErr.zip
0
Boyko Markov
Telerik team
answered on 15 Jan 2008, 04:32 PM
Hi Manfred Pohler,

I'm happy to tell you that we've made a major refactoring of RadPanelBar and we've introduced a brand new version of this control with the Q3 release of RadControls for WinForms. Please download and install the latest version of our product.

Pleaes let me know if you behavior you described still exists in the new version of RadPanelBar.

I'm looking forward to your reply.

If you have any other questions, please contact us again.

Best wishes,
Boyko Markov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Panelbar (obsolete as of Q2 2010)
Asked by
GUIjunkie
Top achievements
Rank 1
Answers by
Jordan
Telerik team
GUIjunkie
Top achievements
Rank 1
Adrian Halid
Top achievements
Rank 1
darcher
Top achievements
Rank 1
Boyko Markov
Telerik team
ManniAT
Top achievements
Rank 2
Share this question
or