Click or drag to resize
KaxMenuGetAllItems Method
Gets a linear list of all items in the KaxMenu control.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public IList<KaxMenuItem> GetAllItems()

Return Value

Type: IListKaxMenuItem
An IList<KaxMenuItem> containing all items (from all hierarchy levels).
Remarks
Use the GetAllItems method to obtain a linear collection of all items regardless their place in the hierarchy.
Examples
The following example demonstrates how to disable all items within a KaxMenu control.
void Page_Load(object sender, EventArgs e)
{
    foreach (KaxMenuItem item in KaxMenu1.GetAllItems())
    {
        item.Enabled = false;
    }
}
See Also