Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
when an unknown printer took a galley of type and scrambled it to make a type
specimen book. It has survived not only five centuries, but also the leap into
electronic typesetting, remaining essentially unchanged. It was popularised in
the 1960s with the release of Letraset sheets containing Lorem Ipsum passages,
and more recently with desktop publishing software like Aldus PageMaker
including versions of Lorem Ipsum.
Custom attributes are convenient way to store custom data for menu items.
You can set custom attributes in the ASPX/ASCX file:
<radm:RadMenuItem State="unchecked" Text="Bold" ></radm:RadMenuItem>
You can also set custom attributes from codebehind via the
Attributes collection exposed by the
RadMenuItem class.
C#
RadMenuItem item = new RadMenuItem();
item.Attributes["State"] = "unchecked";
VB.NET
Dim item As RadMenuItem = New RadMenuItem()
item.Attributes("State") = "unchecked"
To get the value of a custom attribute on the client-side you should use the
GetAttribute method.
<script type="text/javascript">
function ToggleCheck (sender, args)
{
var item = args.Item;
var state = item.GetAttribute("State");
}
</script>
To set the value of a custom attribute on the client-side you should use the
SetAttribute method.
<script type="text/javascript">
function ToggleCheck (sender, args)
{
var item = args.Item;
item.SetAttribute("State", "checked");
}
</script>