Problem error with PanelBar and Gallery Component combination.

11 posts, 0 answers
  1. GUIjunkie
    GUIjunkie avatar
    10 posts
    Member since:
    May 2007

    Posted 05 Jun 2007 Link to this post

    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.....
  2. Jordan
    Admin
    Jordan avatar
    547 posts

    Posted 07 Jun 2007 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. GUIjunkie
    GUIjunkie avatar
    10 posts
    Member since:
    May 2007

    Posted 07 Jun 2007 Link to this post

    thanks for the reply.  we are in the process of purchasing six licenses.  once that goes through, i will log a support ticket.

  5. Adrian Halid
    Adrian Halid avatar
    9 posts
    Member since:
    Aug 2007

    Posted 14 Oct 2007 Link to this post

    Hi,

    I am also getting this error.

    How do I send you the test project?
  6. Jordan
    Admin
    Jordan avatar
    547 posts

    Posted 15 Oct 2007 Link to this post

    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
  7. darcher
    darcher avatar
    1 posts
    Member since:
    Aug 2007

    Posted 22 Oct 2007 Link to this post

    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.
  8. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 23 Oct 2007 Link to this post

    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
  9. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 19 Dec 2007 Link to this post

    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

  10. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 20 Dec 2007 Link to this post

    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
  11. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 15 Jan 2008 Link to this post

    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
  12. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 15 Jan 2008 Link to this post

    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
Back to Top
UI for WinForms is Visual Studio 2017 Ready