Skip to main content

ASPxClientRibbon.SetContextTabCategoryVisible(categoryName, visible) Method

Specifies the visibility of a context tab category specified by its name.

Declaration

SetContextTabCategoryVisible(
    categoryName: string,
    visible: boolean
): void

Parameters

Name Type Description
categoryName string

A String value that is the RibbonContextTabCategory.Name property value of the required category.

visible boolean

true to make a category visible; false to make it hidden.

Remarks

Use the SetContextTabCategoryVisible method to dynamically define a context tab category‘s visible state on the client side. The category initial visibility can be defined by using the RibbonContextTabCategory.ClientVisible property.

Note

If a category server RibbonContextTabCategory.Visible property is set to false, the category is not rendered into the web page at all, so it can’t be manipulated on the client side.

Online Demo

Context Tabs

See Also