DisableTaskMenuItem (client-side)

Use this routine to disable a specific task menu item.

Definition

DisableTaskMenuItem(sID,

                    nItem)

Parameters

sID

A string that matches the id attribute of the corresponding task element in the relevant module configuration file.

nItem

A number indicating the position of the menu item to be disabled, counting from 0 (zero) rather than 1 (one).

Return Value

None.

Remarks

Given the ID of a task button menu element and the zero-based position of an item in the menu, this routine disables the task menu item by setting the following attributes of the task element menu to the indicated values:

  • className with "bdtaskdisabled" appended

This routine is only available after the taskbar has been inserted by calling either InsertTaskBar or InsertEditTaskBar.

This routine is available in the include file ActionPageUtil.asp.

See Also

Client-Side Routines

EnableAllTaskMenuItems (client-side)

EnableTaskMenuItem (client-side)

Server-Side Routines


All rights reserved.