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

RadMenu is not marrked as serializable

1 Answer 96 Views
Menu
This is a migrated thread and some comments may be shown as answers.
BV
Top achievements
Rank 1
BV asked on 07 Dec 2010, 03:59 PM
Hi,

I get the below error if I try to save my Radmenu to a Viewstate . Can you let me know how to make it serializable ?

Type 'Telerik.Web.UI.RadMenu' in Assembly 'Telerik.Web.UI, Version=2010.1.519.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' is not marked as serializable

Thanks
Bino

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 12 Dec 2010, 04:42 PM
Hello BV,

Please note before anything else that we do not support serialization of our controls in ViewState.

The easiest way to do this is to inherit RadMenu and mark the new class with the SerializableAttribute. (Please read more about object serialization and the attribute here.)

Regards,
Simon
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Menu
Asked by
BV
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or