This is a migrated thread and some comments may be shown as answers.
Validator feedback issues
1 Answer 10 Views
This is a migrated thread and some comments may be shown as answers.
Craig
Top achievements
Rank 1
Craig asked on 06 Oct 2017, 06:34 AM

Howdy

I have some Validators defined as follows.  I want to supply negativeFeedback when validation fails, but nothing for positiveFeedback (i.e. null or "").  The problem I have is that once negative feedback appears, it won't go away.  I am forced to supply positiveFeedback such as "OK" to make it disappear.  I'm left with the editor turning green and "OK" appearing.  Devices are only so big, so I don't want to waste valuable real estate and clutter up the screen with "OK" messages.  It reminds me of The Simpsons episode where Homer invents the "Everything is okay alarm".  It just goes off all the time, except for when there's an emergency.

[DisplayOptions(PlaceholderText = "Bank Code", Header = "Bank Code")]
[RegularExpressionValidator(@"^\d{2}$", "Bank code must be 2 digits long")]
public string BankCode { get; set; }

[DisplayOptions(PlaceholderText = "Branch Code", Header = "Branch Code")]
[NonEmptyValidator("Please supply Branch Code")]
public string BranchCode { get; set; }

 

[DisplayOptions(PlaceholderText = "Account Number", Header = "Account Number")]
[StringLengthValidator(7, 7, "Account Number must be 7 digits long")]
public string AccountNumber { get; set; }

 

Cheers
Craig

1 Answer, 1 is accepted

Sort by
0
Stefan Nenchev
Telerik team
answered on 11 Oct 2017, 06:16 AM
Hi, Craig,

The functionality is already logged as a bug in our internal system and you can track its progress on the following link from our Feedback portal - DataForm [Android]: If "positive message" is not provided "error message" is shown when the editor is in a valid state. Unfortunately, there is no easy workaround that we can suggest at the moment so showing a positive feedback is the only workaround you can use until we come up with a fix. I have increased the priority of the bug report at our end as per your report.

Have a great rest of the week, Craig.

Regards,
Stefan Nenchev
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Asked by
Craig
Top achievements
Rank 1
Answers by
Stefan Nenchev
Telerik team
Share this question
or