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
85
xamDataGrid Tooltip for a row - data bind to record to show information not in cells
posted

I have read this thread: http://forums.infragistics.com/forums/t/7885.aspx but it does not address my scenario.

I have a row of cells that display 3 of 7 fields in a class.

I want the tooltip for the row to display the 4 fields that are not in any cells.

I really want to do this in XAML and not in code-behind.

Thank you for your assistance!

Karl

Parents
  • 27093
    Verified Answer
    posted

    Hello Karl,

     

    Excuse me for the late reply. I have been looking into your requirement and in order to achieve this you can create a Style for your DataRecordCellArea, DataRecordPresenter, which both have a DataRecord instance as their DataContext. In the Style you can create a Setter for your ToolTip and bind through the DataRecord’s DataItem property directly to your underlying DataObject’s properties. Here is an example:

     

    <Style TargetType="{x:Type ig:DataRecordPresenter}" >

        <Setter Property="ToolTip" >

            <Setter.Value>

                <StackPanel >

                    <TextBlock Text="{Binding DataItem.Address}" />

                    <TextBlock Text="{Binding DataItem.CellPhone}" />

                    <TextBlock Text="{Binding DataItem.Salary}" />

                </StackPanel>

            </Setter.Value>

        </Setter>

    </Style>

     

    I should note that you needn’t have such Fields included in your FieldLayout to get this working.

     

    Please let me know if I can be of any further assistance on
    the matter.

Reply Children
No Data