Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Menu > Add Image to Radmenu items from DataBase
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered Add Image to Radmenu items from DataBase

Feed from this thread
  • shai avatar

    Posted on May 14, 2011 (permalink)

    how to add Image to Radmenu items from DataBase? I have already populated Radmenu(Datatextfield,navigateurl,Id,ParentId)  from DataBase through C#.net coding. I need to add image pinned to the menu items.how?

    C#.net coding:<br>RadMen
    RadMenuCls rmc = new RadMenuCls();
         
        protected void Page_Load(object sender, EventArgs e)
        {
            
            DataTable dt = rmc.FillRadMenu("4");
            RadMenu1.DataTextField = "text";
            RadMenu1.DataNavigateUrlField = "url";
            RadMenu1.DataFieldID = "id";
            RadMenu1.DataFieldParentID = "pid";
            
            RadMenu1.DataSource = dt;
            RadMenu1.DataBind();
     
        }
    -----------------------------------------------

    public class RadMenuCls:System.Web.UI.Page
    {
        DataTable dtsc = new DataTable();
       
        public RadMenuCls()
        {
            //
            // TODO: Add constructor logic here
            //
        }
        public DataTable FillRadMenu(string role)
        {
            try
            {
              
            if (role == "3")
                .....
            else if (role == "4")
                da = new SqlDataAdapter("select * from MenuAcc", cn);
            else if (role == "8")
                ......
            da.Fill(dtrad);
            return (dtrad);
            }
            catch (Exception ex)
            {
                return (null);
            }
            finally
            {
                cn.Close();
            }
        }



  • Kate Kate admin's avatar

    Posted on May 19, 2011 (permalink)

    Hello shai,

    I noticed that in the product description you have indicated the classic RadMenu control. Unfortunately we no longer provide support for the classic controls. You can read more on this matter in the following post: Telerik's Support Lifecycle Policy.

    Greetings,
    Kate
    the Telerik team

    Consider using RadControls for ASP.NET AJAX (built on top of the ASP.NET AJAX framework) as a replacement for the Telerik ASP.NET Classic controls, See the product support lifecycle here.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Menu > Add Image to Radmenu items from DataBase