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

RadNumericInput Validation Notify Issue

3 Answers 69 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Paul
Top achievements
Rank 1
Paul asked on 01 Oct 2012, 02:19 PM
We have an issue with the RadNumericInput control. It does not display the error template (border or tooltip) when an error is raised until you roll over the control. The error tooltip also appears blank. How can we resolve this issue?

3 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 03 Oct 2012, 09:13 AM
Hi Paul,

Are you testing your solution with our latest release? If yes, can you give us more information about the validation approach(trowing ValidationExceptions, using RegEx, DataAnnotations or IDataErrorInfo) you've implemented? That will help us to better understand the issue and advice you how to get over it.

Regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Paul
Top achievements
Rank 1
answered on 05 Nov 2012, 09:35 AM
We are not using the latest version, we are currently using version v.2011.2.712.1040. We have an object that implements INotifyDataErrorInfo and is bound to the RadNumericInput control like so: Value="{Binding Path=Quantity, Mode=TwoWay, ValidatesOnDataErrors=True}". To raise an error notification we simply call SetError("Quantity", "Required field") which calls function:

Public Event ErrorsChanged As EventHandler(Of DataErrorsChangedEventArgs) Implements INotifyDataErrorInfo.ErrorsChanged

Protected Sub SetError(ByVal propertyName As String, ByVal propertyError As String)
 
    ' Add the list collection for the specified property.
    _errors.Add(propertyName, New List(Of String) From {propertyError})
 
    ' Raise the error-notification event.
    RaiseEvent ErrorsChanged(Me, New DataErrorsChangedEventArgs(propertyName))
 
End Sub


This works for all other controls.
0
Pavel R. Pavlov
Telerik team
answered on 08 Nov 2012, 08:15 AM
Hi Paul,

We had this kind of issues with in our previous releases. Can you please try to reproduce this issue with out latest official release (2012.3.1017)? Also if it is reproducing it will be best if you send us the project so we will be able to debug it. Thank you for your cooperation.

All the best,
Pavel R. Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Paul
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Paul
Top achievements
Rank 1
Pavel R. Pavlov
Telerik team
Share this question
or