RadMenu - where to get dll??

10 posts, 1 answers
  1. Michael
    Michael avatar
    69 posts
    Member since:
    Jun 2008

    Posted 05 Jul 2008 Link to this post

    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
  2. Kevin Babcock
    Kevin Babcock avatar
    189 posts
    Member since:
    Mar 2007

    Posted 08 Jul 2008 Link to this post

    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
  3. MK
    MK avatar
    7 posts
    Member since:
    Jul 2008

    Posted 11 Jul 2008 Link to this post

    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
  4. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 11 Jul 2008 Link to this post

    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
  5. Kevin Babcock
    Kevin Babcock avatar
    189 posts
    Member since:
    Mar 2007

    Posted 11 Jul 2008 Link to this post

    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
  6. Michael
    Michael avatar
    69 posts
    Member since:
    Jun 2008

    Posted 15 Jul 2008 Link to this post

    Kevin,

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

    1 using System;  
    2 using System.Collections;  
    3 using System.Configuration;  
    4 using System.Data;  
    5 using System.Linq;  
    6 using System.Web;  
    7 using System.Web.Security;  
    8 using System.Web.UI;  
    9 using System.Web.UI.HtmlControls;  
    10 using System.Web.UI.WebControls;  
    11 using System.Web.UI.WebControls.WebParts;  
    12 using System.Xml.Linq;  
    13 using DotNetNuke; 

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

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

    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
  7. Kevin Babcock
    Kevin Babcock avatar
    189 posts
    Member since:
    Mar 2007

    Posted 15 Jul 2008 Link to this post

    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:

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

    Regards,
    Kevin Babcock


  8. Michael
    Michael avatar
    69 posts
    Member since:
    Jun 2008

    Posted 16 Jul 2008 Link to this post

    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
  9. Answer
    Kevin Babcock
    Kevin Babcock avatar
    189 posts
    Member since:
    Mar 2007

    Posted 16 Jul 2008 Link to this post

    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
  10. Michael
    Michael avatar
    69 posts
    Member since:
    Jun 2008

    Posted 16 Jul 2008 Link to this post

    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
Back to Top