This is a migrated thread and some comments may be shown as answers.

Inotifydataerrorinfo - Validation Message Styling

3 Answers 99 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Madhu
Top achievements
Rank 1
Madhu asked on 31 Oct 2011, 11:51 AM
Hi,

Is there a way to keep the Validation Message always visible to user instead of having to hover over the red border?

Regards,
Madhu

3 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 03 Nov 2011, 08:16 AM
Hi Madhu,

The validation message is always visible if the control is in focus. Initially, you could edit the template of the RadComboBox in Blend and extract the ValidationToolTip template. In that way you will be able to edit/remove the animation for showing the tooltip. You can edit the ComboBox in Blend by dragging the control on the design surface, right-clicking it and choosing from the menu Edit Template-> Edit a Copy. In that way you will have all the resources need for the change.
Also, I can suggest you to use the Summary label as demonstrated in this online demo.

Hope this information helps.

Greetings,
Konstantina
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Madhu
Top achievements
Rank 1
answered on 04 Nov 2011, 08:28 AM
Thanks for the reply Konstantina.

We were able to achieve this partly by inserting the tooltip in <VisualState x:Name="InvalidFocused"> as well. Now when I tab out of a textbox, the tooltip is visible.

The problem we face now is if I close a wizard when these tooltips are visible (Cancel out of a Wizard without rectifying the errors), the tooltip remains visible.
Is there a way to forcefully clear out validation error messages while cancelling out?

Regards,
Madhu
0
Konstantina
Telerik team
answered on 07 Nov 2011, 01:28 PM
Hello Madhu,

I suppose an easier way will be to create your own error message, instead. Showing/hiding the validation tooltip will be more effort consuming, then just putting a TextBlock for example and binding its Text property to Validation.Errors attached property. Also, you could change the visibility of the TextBlock using the Validation.HasError property. With just a bit styling, like adding a red border behind the TextBlock, you will have a error message, that you will be able to show/hide whenever needed.

Kind regards,
Konstantina
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
ComboBox
Asked by
Madhu
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Madhu
Top achievements
Rank 1
Share this question
or