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

Designer Issue when Inheriting Toolstrip

5 Answers 89 Views
Toolstrip (obsolete as of Q3 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.
Sean
Top achievements
Rank 1
Sean asked on 23 Dec 2008, 08:47 PM
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)

5 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 29 Dec 2008, 02:39 PM
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.
0
Sean
Top achievements
Rank 1
answered on 30 Dec 2008, 01:40 AM
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.
0
Nick
Telerik team
answered on 30 Dec 2008, 09:48 AM
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.
0
nick
Top achievements
Rank 1
answered on 30 Apr 2009, 07:02 PM
FYI - Same problem (and fix) with the RadMenuStrip
0
Nick
Telerik team
answered on 01 May 2009, 07:37 AM
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.
Tags
Toolstrip (obsolete as of Q3 2010)
Asked by
Sean
Top achievements
Rank 1
Answers by
Nick
Telerik team
Sean
Top achievements
Rank 1
nick
Top achievements
Rank 1
Share this question
or