Designer Issue when Inheriting Toolstrip

6 posts, 0 answers
  1. Sean
    Sean avatar
    10 posts
    Member since:
    Aug 2012

    Posted 23 Dec 2008 Link to this post

    I am inheriting from a usercontrol that has a Toolstrip control on it, but when I open the design view of the child class I get the following error for each element in the inherited ToolStrip : -

    Error getting RadControl item glyphs: System.NullReferenceException: Object reference not set to an instance of an object.
      at Telerik.Wincontrols.Design.RadItemActionListGlyph..ctor(RadItemGlyph itemGlyph)
      at Telerik.Wincontrols.Design.RadItemDesigner.EnsureItemGlyph()
      at Telerik.Wincontrols.Design.RadItemDesigner.GetGlyphs(GlyphSelectionType selectionType)
      at Telerik.Wincontrols.RadControlDesigner.GetGlyphs(GlyphSelectionType selectionType)
  2. Nick
    Admin
    Nick avatar
    767 posts

    Posted 29 Dec 2008 Link to this post

    Hello Sean,

    Thank you for your inquiry. We checked the scenario with VS 2008 and our latest release and everything seems to work. Sending us a sample application demonstrating it will be very helpful in researching the issue further.

    The inherited user control should be locked for editing ( you should see a lock in upper left corner of the control). Also we fixed a similar (or perhaps the same) bug in one of our previous releases.

    To help you better in our support system, please ask your employer to include you as a licensed developer. Our website FAQ section contains more information on that.

    Greetings,
    Nick
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Sean
    Sean avatar
    10 posts
    Member since:
    Aug 2012

    Posted 29 Dec 2008 Link to this post

    I have investigated further and found the anwser.  I had changed all the 'private' to 'protected' in the parent class to allow accees for the child classes.  When I changed to ToolStrip controls back to private everything worked fine.  This is not an issue for non-Telerik controls.
  5. Nick
    Admin
    Nick avatar
    767 posts

    Posted 30 Dec 2008 Link to this post

    Hello Sean,

    I am glad you found a solution for the issue.
    It seems to be fixed in our latest release (2008 Q3 SP1).

    All the best,
    Nick
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. nick
    nick avatar
    11 posts
    Member since:
    Apr 2007

    Posted 30 Apr 2009 Link to this post

    FYI - Same problem (and fix) with the RadMenuStrip
  7. Nick
    Admin
    Nick avatar
    767 posts

    Posted 01 May 2009 Link to this post

    Hi nick,

    Thank you for your feedback.

    All the best,
    Nick
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top
UI for WinForms is Visual Studio 2017 Ready