aspnet-devexpress-dot-web-dot-ribboncontexttabcategory-4fef84a6.md
Gets or sets a value that specifies the context tab category‘s initial visibility state on the client side.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue(false)]
public bool ClientVisible { get; set; }
<DefaultValue(False)>
Public Property ClientVisible As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true to make a category initially displayed on the client; false to render the category, but make it initially hidden on the client side.
|
Use the ClientVisible property to define an context tab category‘s initial visibility state. The category’s visibility can then be dynamically changed on the client side using the ASPxClientRibbon.SetContextTabCategoryVisible method.
Note
If an item’s 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.
The complete sample is available in the Context Tabs online demo.
<dx:ASPxRibbon ID="ASPxRibbon" runat="server" >
<Tabs>...</Tabs>
<ContextTabCategories>
<dx:RibbonContextTabCategory Name="Picture tools" Color="#d31313" ClientVisible="true">
<Tabs>
<dx:RibbonTab Name="Format" Text="Format">...</dx:RibbonTab>
</Tabs>
</dx:RibbonContextTabCategory>
<dx:RibbonContextTabCategory Name="Table tools" Color="#17a300" ClientVisible="true">
<Tabs>
<dx:RibbonTab Text="Design">...</dx:RibbonTab>
<dx:RibbonTab Text="Layout">...</dx:RibbonTab>
</Tabs>
</dx:RibbonContextTabCategory>
</ContextTabCategories>
</dx:ASPxRibbon>
See Also
RibbonContextTabCategory Class