New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
LoadContentFile does not work with inherited RadMenu
PROBLEM
LoadContentFile does not work with inherited RadMenu.
SOLUTION
The RadMenu for ASP.NET Ajax uses the built-in .NET XML serialization, which relies on the XmlRoot attribute. If your custom class does not have this attribute, an exception will occur. You should modify your source like:
C#
using Telerik.Web.UI;
using System.Xml.Serialization;
namespace Tuldi
{
[XmlRoot("Menu")]
public class customMenu : RadMenu
{
}
}