ASP.NET Slide Menu Documentation - Advanced Properties

Methods .NET only

Name Description
methodAddParentAt Adds a new Parent after the item with ID atId.

AddParentAt(id, atId, innerHtml, url, onClientClick, urlTitle, [urlTarget])
  • id - Item ID.
  • atId - Item ID after which to add this Parent.
  • innerHtml - Text or HTML to display inside the item.
  • url - Url to open when item is clicked.
  • onClientClick - javascript code to execute when item is clicked.
  • urlTitle - title for the URL.
  • urlTarget - target where to open the URL.
osm.AddParentAt("prod", "services", "Our Products", null, null, null);
methodAddChildAt Adds a new Child after the item with ID atId.

AddChildAt(id, atId, innerHtml, url, onClientClick, urlTitle, [urlTarget])
  • id - Item ID.
  • atId - Item ID after which to add this parent.
  • innerHtml - Text or HTML to display inside the item.
  • url - Url to open when item is clicked.
  • onClientClick - javascript code to execute when item is clicked.
  • urlTitle - title for the URL.
  • urlTarget - target where to open the URL.
osm.AddChildAt("comp", "products", "Computers", "products.aspx", null, null);
Name Description
propertyScriptPath Path to Slide Menu javascript file. Default value: "/slidemenu/smscript" Optional
osm.ScriptPath = "smscript/";
propertyXmlPath Path to Slide Menu XML file. Menu will first be loaded from XML file, then as Parents and Children are added in code. Optional
osm.XmlPath = "smxml.xml";
propertyAutoQueryString When true, menu will automatically add query string ?sm=[item_id] to every URL added to menu. Optional
osm.AutoQueryString = true;

Note: Use this to easily get the SelectedId. For example, osm.SelectedId = Request.QueryString["sm"];
propertyAutoPostBack When true, menu will automatically do postback when child item is clicked. Optional
osm.AutoPostBack = true;

Note: Default value of AutoPostback is true
propertyMinimumChildrenHeight Minimum height for each children box. Optional
osm.MinimumChildrenHeight = 50;
propertyImageLongDescription URL for the long description of menu images. Optional
osm.ImageLongDescription = "longdesc.html";

Properties - styles

    When StyleFolder is set, these properties are ignored
Name Description
propertyCSSParent CSS class for Parents. Optional
osm.CSSParent = "smParent";
propertyCSSParentOver CSS class for Parents with cursor over. Optional
osm.CSSParentOver = "smParentOver";
propertyCSSParentSelected CSS class for Parents when selected. Optional
osm.CSSParentSelected = "smParentSelected";
propertyCSSChild CSS class for Children. Optional
osm.CSSChild = "smChild";
propertyCSSChildOver CSS class for Children with cursor over. Optional
osm.CSSChildOver = "smChildOver";
propertyCSSChildSelected CSS class for Children when selected. Optional
osm.CSSChildSelected = "smChildSelected";
propertyCSSMenu CSS class for the DIV holding the whole menu. Optional
osm.CSSMenu = "smMenu";
propertyCSSChildrenBox CSS class for a children box which holds all children for each parent. Optional
osm.CSSChildrenBox = "smChildrenBox";
propertyCSSPath Path to the CSS file. Optional
osm.CSSPath = "/slidemenu/styles/xp_blue.css";
Slide Menu Properties - images     When StyleFolder is set, these properties are ignored
Name Description
propertyImageParent Parent image. Optional
osm.ImageParent = "/slidemenu/images/arrow_blue.gif";
propertyImageParentOver Parent image with cursor over. Optional
osm.ImageParentOver = "/slidemenu/images/arrow_red.gif";
propertyImageParentSelected Parent image when selected. Optional
osm.ImageParentSelected = "/slidemenu/images/arrow_blue.gif";
propertyImageChild Child image. Optional
osm.ImageChild = "/slidemenu/images/arrow_blue.gif";
propertyImageChildOver Child image with cursor over. Optional
osm.ImageChildOver = "/slidemenu/images/arrow_red.gif";
propertyImageChildSelected Child image when selected. Optional
osm.ImageChildSelected = "/slidemenu/images/arrow_blue.gif";
propertyCSSImageParent CSS class for Parent image. Optional
osm.CSSImageParent = "smImageParent";
propertyCSSImageChild CSS class for Child image. Optional
osm.CSSImageChild = "smImageChild";

"First of all, Thanks to all of you for helping me in cruch situations... Your precious help is just more than to be expressed rather appreciated in words... Really Thank you..."

Abhisek Singh

Random testimonial   All testimonials