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
905
Summary tooltip
posted

Hello,

There is a tooltip on the summary labels like "FieldName: 1,200 USD". Is there a change to show the tool tip like "FieldLabel: 1,200 USD".

 

Parents
  • 27093
    Suggested Answer
    posted

    Hello ,

     

    I have been looking into your issue and have found a way for you to achieve your goal. What you can do is copy the original template from the DefaultStyles folder and change the Border’s  ToolTip binding like so:

     

    <!-- _________________________ SummaryResultPresenter ______________________________________ -->

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

        <Setter Property="Padding" Value="1,1"/>

        <Setter Property="Template">

            <Setter.Value>

                <ControlTemplate TargetType="{x:Type igDP:SummaryResultPresenter}">

                    <Border

                  Background="{TemplateBinding Background}"

                  BorderBrush="{TemplateBinding BorderBrush}"

                  BorderThickness="1"

                  Padding="{TemplateBinding Padding}"

                  ToolTip="{Binding Path=SummaryResult, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource MyCon}}">

                        <TextBlock Text="{Binding Path=SummaryResult.DisplayTextAsync, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}"/>

                    </Border>

                </ControlTemplate>

            </Setter.Value>

        </Setter>

        <Setter Property="Margin" Value="0,0,0,2"/>

    </Style>

     

    and create a ToolTipConverter class implementing IValueConverter with a convert method like this one:

     

    public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)

    {

        if (value != null)

        {

            return (value as SummaryResult).SourceField.Label.ToString() + ": " + (value as SummaryResult).DisplayText;

        }

        else

        {

            return value;

        }

    }

     

    Please let me know if you require any further assistance on the matter.

     

    Sincerely,

    Petar Monov

    Developer Support Engineer

    Infragistics Bulgaria

    www.infragistics.com/support

Reply Children
No Data