Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Menu > "/Images/" Prepended to Image Src for Custom Actions in DNN
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 "/Images/" Prepended to Image Src for Custom Actions in DNN

Feed from this thread
  • Joshua avatar

    Posted on Jun 11, 2011 (permalink)

    As the title says, in my custom module that implements IActionable,

    I'm adding custom actions.  One of those actions looks like:
    Actions.Add(this.GetNextActionID(), "Edit", ModuleActionType.AddContent, "", "~/DesktopModules/CustomModule/Images/Edit.png", this.EditUrl("", "", "edit"), false, DotNetNuke.Security.SecurityAccessLevel.Edit, true, false);

    I've also tried without the tilde in the path.

    Actions.Add(this.GetNextActionID(), "Edit", ModuleActionType.AddContent, "", "/DesktopModules/CustomModule/Images/Edit.png", this.EditUrl("", "", "edit"), false, DotNetNuke.Security.SecurityAccessLevel.Edit, true, false);

    Either way, DNN interprets correctly.  If I use the builtin DNN menu, the icons are displayed.  Also, the Actions within the Container's actionpane renders the Icons correctly.

    However, on both instances, Telerik's DropDownMenu adds "/Images/" to the beginning of the path.  This SHOULD NOT BE THE CASE.  Therefore, the images do not show up correctly.  3rd-Party module developers do not put images in the main images path, but rather the module's path.

    Also, this should not be fixed on a container's code-behind.  Again, the SolPartMenu renders correctly.  Obviously, this is a bug in the Telerik RadActionsMenu on Line 124 of the control's source.

    Please fix!

    Joshua

  • Peter Peter admin's avatar

    Posted on Jun 16, 2011 (permalink)

    Hi Joshua,

    Thank you for you input! We will look into the case more deeply and make any necessary changes to fix the problem.

    Regards,
    Peter
    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 > "/Images/" Prepended to Image Src for Custom Actions in DNN