Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxTooltipSettings.ZIndex Property

Specifies the tooltip Z-index.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue(null)]
[Parameter]
public int? ZIndex { get; set; }

#Property Value

Type Default Description
Nullable<Int32> null

The tooltip Z-index.

#Remarks

DevExpress pop-up components, such as drop-down or pop-up windows, overlap other elements. We use the z-index CSS property to arrange pop-up elements on the page. To ensure correct positioning, the components calculate z-indexes dynamically.

If the target component’s container has the CSS z-index property specified and the component overlaps tooltips, increase the ZIndex property value to display tooltips in front of the component.

The following code snippet changes the toolip Z-index:

<DxBarGauge Width="50%"
            Height="50%"
            StartValue="-5"
            EndValue="5"
            BaseValue="0"
            Values="@Values">
    @* ... *@
    <DxTooltipSettings Enabled="true"
                       Color="lightyellow" 
                       ZIndex="520">
        <DxTextFormatSettings LdmlString="@LabelFormat" />
    </DxTooltipSettings>
</DxBarGauge>

@code {
    string LabelFormat = "##.## mm;-##.## mm";
    double[] Values = new double[] { -2.13, 1.48, -3.09, 4.52, 4.9, 3.9 };
}
See Also