ValidationErrorTemplate: ToolTip display mode on MultiColumnComboBox ?

1 Answer 72 Views
MultiColumnComboBox
Romain
Top achievements
Rank 2
Iron
Iron
Romain asked on 29 May 2024, 08:17 PM

Hi,

I'm using a RadMultiColumnComboBox and can't seem to be able to set the validation error template to Tooltip using:

telerik:ValidationErrorTemplateHelper.DisplayMode="ToolTip"

It always set the validation message on the right of the control, and in my case it's being clipped by the windows limits.

This usually works great on all other controls.

Thank you for your help

1 Answer, 1 is accepted

Sort by
0
Accepted
Stenly
Telerik team
answered on 03 Jun 2024, 11:14 AM

Hello Romain,

Currently, the RadMultiColumnComboBox control does not support the ValidationErrorTemplateHelper.DisplayMode attached property. Due to this, I have logged a new feature request in our feedback portal, in order to add support for it. It can be found at the following link where you can vote for it, as well as follow it, in order to get notified via e-mail when its status gets changed:

MCCB: Add support for the ValidationErrorTemplateHelper.DisplayMode attached property (telerik.com)

As a token of gratitude for bringing this to our attention, I have updated your Telerik points.

In the meantime, may I ask if you could share, which theme is used on your end? This will allow me to provide the ToolTip validation template for the theme that you are using.

Regards,
Stenly
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Romain
Top achievements
Rank 2
Iron
Iron
commented on 03 Jun 2024, 01:06 PM

Thank you for the new feature request. The theme we are using in Windows11 Compact. But it does the same for the Windows11  theme
Stenly
Telerik team
commented on 03 Jun 2024, 02:13 PM

When the ValidationErrorTemplateHelper.DisplayMode attached property is set to ToolTip, the ControlTemplate with x:Name="ValidationTooltipTemplate" is applied to the element and it will be used when a validation error occurs.

The default validation error template for the RadMultiColumnComboBox control is the ControlTemplate with x:Name="StaticValidationTooltipTemplate", which uses a Border and TextBlock to display the error message rather than a ToolTip (this element is used when the ValidationTooltipTemplate is set).

With this in mind, if you are using the NoXaml version of our assemblies, you could apply the tooltip error template as follows:

<telerik:RadMultiColumnComboBox Validation.ErrorTemplate="{StaticResource ValidationTooltipTemplate}">
    <telerik:RadMultiColumnComboBox.ItemsSourceProvider>
        <telerik:GridViewItemsSourceProvider ItemsSource="{Binding MyCollection}"/>
    </telerik:RadMultiColumnComboBox.ItemsSourceProvider>
</telerik:RadMultiColumnComboBox>

This ControlTemplate is defined in the Telerik.Windows.Controls.xaml resource dictionary for the chosen theme, so with the above code snippet, it should be applied correctly and the following result should be present on your end:

I have also attached a sample project for you to test, which requires the NoXaml assemblies to be added.

Tags
MultiColumnComboBox
Asked by
Romain
Top achievements
Rank 2
Iron
Iron
Answers by
Stenly
Telerik team
Share this question
or