in the Master I have a Rad menu, which gets the items from a siteMap-File
|<telerik:RadMenu ID="radMenu" runat="server"
| DataSourceID="siteMapDataSource" onitemclick="radMenu_ItemClick" />
In the method radMenu_ItemClick I tried to get a reference to the RadGrid in the current Page. (I assume here that the correct page is currently loaded)
|protected void radMenu_ItemClick(object sender, Telerik.Web.UI.RadMenuEventArgs e)
| Tasklist tasklistGUI = radMenu.Page as Tasklist;
| RadGrid tasklistRadGrid = tasklistGUI.FindControl("RadGrid1") as RadGrid;
The idea is then to call ExportToExcel as a method of the referenced object. But the object is null!
What's wrong? What must I do to get a working reference to the RadGrid?
Thank you very much in advance.