RadMenu for ASP.NET

How to use RadMenu instead of the default solpartactions menu Send comments on this topic.
DNN > How to use RadMenu instead of the default solpartactions menu

Glossary Item Box

By default, DNN uses the solpart menu as a pop-up action menu:

default solpartactions menu

You can use RadMenu instead:

RadMenu actions

To do this, you need to replace

  Copy Code
<dnn:ACTIONS ... />

 with

  Copy Code
<dnn:RADMENUACTIONS ... />

 

Suppose that you want to use the Dnn-Gray container with the image header - color background style:

Dnn - Gray container

 

Below are two step-by-step methods which show exactly how to replace the solpartactions menu with RadMenu.

Method A

This method relies on directly modifying the ascx file.

  1. Find the Image Header - Color Background.ascx file located at:

    DotNetNuke\Website\Portals\_default\Containers\DNN-Gray
  2. Open this file for edit.
  3. Register the RADMENUACTIONS tag by adding the following line of code:

      Copy Code
    <%@ Register TagPrefix="dnn" TagName="RADMENUACTIONS" Src="~/DesktopModules/RadMenu/RadMenuActions.ascx" %>
  4.  Replace

      Copy Code
    <dnn:ACTIONS ... />
    with

      Copy Code
    <dnn:RADMENUACTIONS ... />

  5. Set additional properties for RadMenu if desired. For example you can set the Skin property:

      Copy Code
    <dnn:RADMENUACTIONS runat="server" id="dnnRADMENUACTIONS" Skin="CssGreen" />

 

Method B

This is a more indirect method which modifies the htm and xml files which after parsing produce the ascx file from method A.

  1. Find and open for edit the container.xml file located at:

    DotNetNuke\Website\Portals\_default\Containers\DNN-Gray
  2. Replace <Token>[ACTIONS]</Token> with <Token>[RADMENUACTIONS]</Token>
  3. Set RadMenu additional properties if needed. For example set the Skin property to CssGreen:

    <Token>[RADMENUACTIONS]</Token>
      <Settings>   
             <Setting>
                 <Name>Skin</Name>
                 <Value>CssGreen</Value>
       </Setting>   
     </Settings>
  4. Save changes to the container.xml file
  5. Next, find and open for edit the Image Header - Color Background.htm file located in the same directory as container.xml.
  6. Replace [ACTIONS] with [RADMENUACTIONS]
  7. Save changes to Image Header - Color Background.htm file
  8. Parse the skin package to update the Image Header - Color Background.ascx file

    Parse Skin