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

Radmenu nightmare

2 Answers 77 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Antonio Ibáñez Oliva
Top achievements
Rank 1
Antonio Ibáñez Oliva asked on 13 Jul 2012, 11:31 AM
Hi, i'm using radmenu with a few buttons, and submenus... This has happened to me 3 times. When i try to change the name of a item directly on the property window, not the item collection window, i get the error "The value can't be null. Parameter name objecttype":

en System.ComponentModel.TypeDescriptor.TypeDescriptionNode.GetRuntimeType(Type objectType)
en System.ComponentModel.TypeDescriptionProvider.GetRuntimeType(Type reflectionType)
en Microsoft.VisualStudio.Design.MultiTargetingContextProvider.GetRuntimeType(Type objectType)
en Microsoft.VisualStudio.Design.Serialization.CodeDom.HandlesClauseManager.GetFieldType(String fieldName, Type documentBaseType)
en Microsoft.VisualStudio.Design.Serialization.CodeDom.HandlesClauseManager.GetReferencedComponentType(String componentName, CodeTypeDeclaration codeTypeDecl, ITypeResolutionService loader, IDictionary& cache)
en Microsoft.VisualStudio.Design.Serialization.CodeDom.HandlesClauseManager.ParseHandlesClauses(CodeTypeDeclaration codeTypeDecl, Boolean updateCache)
en Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomParser.OnMethodPopulateStatements(Object sender, EventArgs e)
en System.CodeDom.CodeMemberMethod.get_Statements()
en System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
en System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
en Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
en Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)
 
And now every time i open the designer i get this error.

Any help?
Thanks

2 Answers, 1 is accepted

Sort by
0
Antonio Ibáñez Oliva
Top achievements
Rank 1
answered on 13 Jul 2012, 11:57 AM
Solved!!
The error is related to the handlers of click event of radmenuitem when i copied the code from other form.
0
Stefan
Telerik team
answered on 16 Jul 2012, 12:27 PM
I am glad to hear that everything is OK with this case.

Should you have any other questions, do not hesitate to contact us.

Kind regards,
Stefan
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
Menu
Asked by
Antonio Ibáñez Oliva
Top achievements
Rank 1
Answers by
Antonio Ibáñez Oliva
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or