Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
95
Creating a tooltip for a column
posted

I'm trying to set a tooltip for a column in a XamDataGrid. I basically want to have a short label, but when you hover the mouse over the label, you get the long description. So I might have a label of "TD Quantity" for a column, and have a tooltip of "Trade Date Quantity". I found the ToolTipService off of the FieldLayout, but I can't seem to get that to do anything, and I can't find any documentation for it.

Is there an easy way to do tooltips?

Thanks,

-Ryan

Parents
No Data
Reply
  • 8576
    Offline posted
    Hi Ryan -
     
    You can accomplish this by specifiying a Style for the LabelPresenter on the FieldSettings for the Field you want top add the ToolTip to:
     

    <igDP:XamDataGrid.FieldLayouts>

    <igDP:FieldLayout>

    <igDP:FieldLayout.Fields>

    <igDP:Field Name="TD Quantity">

    <igDP:Field.Settings>

    <igDP:FieldSettings >

    <igDP:FieldSettings.LabelPresenterStyle>

    <Style TargetType="{x:Type igDP:LabelPresenter}">

    <Setter Property="ToolTip" Value="Trade Date Quantity"/>

    </Style>

    </igDP:FieldSettings.LabelPresenterStyle>

    </igDP:FieldSettings>

    </igDP:Field.Settings>

    </igDP:Field>

    </igDP:FieldLayout.Fields>

    </igDP:FieldLayout>

    </igDP:XamDataGrid.FieldLayouts>

    Joe
     
Children