Table of Contents
RaisesServerEvent Property

Gets or sets a boolean indicates if a server side postback ItemClick event should be raised when an item is clicked. Default value is false.

Syntax
 public Boolean RaisesServerEvent { get; set; }
Remarks

Setting this property to True causes the page to raise server side ItemClick postback event when a item in this control is clicked. You can handle the event in ItemClick event handler. In the event handler, the clicked item can be accessed through NavigationItemEventArgs's properties.

Value Inheritance section lists generic rules to determine final value during runtime, however, there is one exception for slide menu's top level items:

  • For slide menu, a top level item's RaisesServerEvent must be set to true to raise server event when that item is clicked. Because by default slide menu's top level items expand sub menu panes when clicked.

Value Inheritance

RaisesServerEvent property exists on three kinds of objects:
  • Navigation control (inherited from BaseNavigator)
  • Navigation group (inherited from NavigationItemGroup)
  • Navigation item (inherited from NavigationItem)
By default, setting a navigation control's RaisesServerEvent properpty will apply to all level objects. However, when the value is set in multiple objects, the value of the lowest level object is used.
Here are the steps to determine which object's value will be used:
StepsDescription
To determine a navigation item's RaisesServerEvent If the value is Null, use the value from the parent navigation group;
To determine a navigation group's RaisesServerEvent If the value is Null, use the value from the parent navigation item. This logic continues until a True or False value is found.
To determine top level group's RaisesServerEvent If top level group is reached, use the control's (inherited from BaseNavigator) RaisesServerEvent as the final.
Note: Special case(s), if any, is listed in the remark section.
See Also