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

RadMenu - where to get dll??

9 Answers 236 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 05 Jul 2008, 05:27 PM
We purchased the entire RADControls package.

I am trying to use the OnItemDataBound event on a RadMenu, but the second parameter (Telerik.WebControls.RadMenuEventArgs e) isn't recognized.  I searched online and it appears I need the RadMenu.dll so that I can add a using Telerik.WebControls statement to the top of my code file.  I can not find the RadMenu.dll anywhere.  The only dlls I can find are the following:

  • Telerik.Charting.dll
  • Telerik.Web.UI.dll
What am I missing?

Thanks!

Michael

9 Answers, 1 is accepted

Sort by
0
Kevin Babcock
Top achievements
Rank 1
answered on 08 Jul 2008, 05:20 PM
Hello Michael,

The RadMenuEventArgs class you are trying to reference actually lives in the Telerik.Web.UI namespace. All of our web controls and classes exist inside the Telerik.Web.UI assembly, and can be found there. If you are curious in the future about where to locate a class, you might try using .NET Reflector to search the assembly.

I hope this answered your question. Please let me know if you continue to have a problem.

Regards,
Kevin Babcock
0
MK
Top achievements
Rank 1
answered on 11 Jul 2008, 02:13 PM
Hello
i am getting this error when i try to aspx page using Radmenu . i am new with telerik tools.

The control with ID 'RadMenu1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.

please help me

Thanks
Mona
0
Veselin Vasilev
Telerik team
answered on 11 Jul 2008, 02:17 PM
Hello Mona,

Have you created an AJAX-Enabled Web Site in Visual Studio?
Have you added the ScriptManager or RadScriptManager on the page?

If you still experience the problem - please send us a sample project illustrating the issue.


Regards,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Kevin Babcock
Top achievements
Rank 1
answered on 11 Jul 2008, 02:22 PM
Hello Mona,

Because our RadControls for ASP.NET AJAX suite is built right on top of the ASP.NET AJAX framework, using the controls requires that a ScriptManager control also be present on the page. This is the same requirement as if you were using ASP.NET's built in AJAX controls, such as the UpdatePanel.

If you are new to using ASP.NET AJAX, I highly suggest taking a look at these great video tutorials. If you are already familiar with these concepts, or when you get up to speed on them, take a look at our new Telerik Trainer, which has many great videos on using our tools. Of particular interest to you might be the RadAjax video and the RadMenu video.

I hope that helps. Please let me know if you continue to have trouble.

Sincerely,
Kevin Babcock
0
Michael
Top achievements
Rank 1
answered on 16 Jul 2008, 03:16 AM
Kevin,

I am just getting back to this.  I am still having this same issue.  Here is my using statements:

using System;  
using System.Collections;  
using System.Configuration;  
using System.Data;  
using System.Linq;  
using System.Web;  
using System.Web.Security;  
using System.Web.UI;  
using System.Web.UI.HtmlControls;  
using System.Web.UI.WebControls;  
using System.Web.UI.WebControls.WebParts;  
using System.Xml.Linq;  
using DotNetNuke; 

Here is my method with the parameter whose type is not recognized:

        protected void rmCategory_ItemDataBound(object sender, Telerik.WebControls.RadMenuEventArgs e)  
        {  
 
            DataRowView dataRow = (DataRowView)e.Item.DataItem;  
 

The second parameter is not recognized.  I have the latest production Telerik.Web.UI dll added as a reference.  This seems so basic.  What am I missing?

Thanks!

Michael
0
Kevin Babcock
Top achievements
Rank 1
answered on 16 Jul 2008, 04:22 AM
Hello Michael,

Did you make the change I suggested in my post above? The RadMenuEventArgs live inside the Telerik.Web.UI namespace. Change your method signature to:

protected void rmCategory_ItemDataBound(object sender, Telerik.Web.UI.RadMenuEventArgs e) 
    // add implementation here 

Regards,
Kevin Babcock


0
Michael
Top achievements
Rank 1
answered on 16 Jul 2008, 12:46 PM
Kevin,

That worked, but I am confused.  I tried it before without the full name qualifier (meaning, just "RadMenuEventArgs" without the Telerik.Web.UI qualifier) and it didn't resolve properly that way.  Why would that be?  I have other event methods defined where the full name qualifier is not specified, but the class is recognized just fine.

For example, I have a NeedsDataSource method and the second parameter is defined as a "GridNeedDataSourceEventArgs" without the Telerik.Web.UI before it - and it is recognized just fine.

I am happy it is working now, but it isn't logical to me that the class name had to have the full name qualifier in order to be recognized.

Thoughts?

Thanks!

Michael
0
Accepted
Kevin Babcock
Top achievements
Rank 1
answered on 16 Jul 2008, 01:17 PM
Hi Michael,

In those classes where you do not have to fully qualify the namespace, do you have the namespace in a using directive? In order to use the classes in the Telerik.Web.UI namespace you must be operating within the scope of that namespace - by either fully qualifying the namespace or including a using directive at the top of your class.

I hope that clears things up.

Sincerely,
Kevin Babcock
0
Michael
Top achievements
Rank 1
answered on 16 Jul 2008, 01:32 PM
Thanks Kevin... I am working on a number of projects right now... and copied the "using" statements from the wrong file and never realized and never thought to go look again.  You were right, I was missing the most obvious possibility... sheesh.  Time to take a vacation...lol.

On a related note, I want to create a dynamic menu that uses templates, but only for the child items.  I am actually going for the look you have in your demo here (http://www.telerik.com/DEMOS/ASPNET/Prometheus/Menu/Examples/Functionality/Templates/DefaultCS.aspx).

Unfortunately, that demo uses static templates.  I need for mine to be dynamic so that the images and text are all from the database.  I have wired the ItemDataBound event and I am trying to add a template dynamically for all items whose level is greater than 0 (assuming 0 means top level parent which I want left alone).

Do you have any samples anywhere of creating a template on the fly in this way?

Thanks!

Michael
Tags
Menu
Asked by
Michael
Top achievements
Rank 1
Answers by
Kevin Babcock
Top achievements
Rank 1
MK
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Michael
Top achievements
Rank 1
Share this question
or