Current filter:
                                You should refresh the page.
                                  • When a user fills out a form, I almost always want to perform some validity check on the data being entered. I know how to use the OnEditing event for any TcxEditContols but unfortunatly, it's not as easy as validators in ASP.NET.
                                    It could be very nice to have some validation controls or new properties in TcEditControls like DisplayErrorMsg. This error message could be displayed at the bottom (or Top/Right/Left) of the controls with a Font property (for the size, color....) or even better, add in the LookAndFeel an Error style. It could be possible to change the border style too...
                                    Anyway, something to show on a form all error fields with their own error message.
                                    It's something like some properties in the RequiredFieldValidator, CompareValidator, RangeValidator, RegularExpressionValidator and CustomValidator ASP.NET components.
                                    Thank you.

                                2 Solutions

                                Creation Date Importance Sort by

                                Implementation Details:
                                With VCL 12.2, we have added the Properties.ValidationOptions option set and the OnValidateDrawValue event, which allow you to easily validate data input and visualize validation results. The new capabilities are available in standalone and in-place editors, as well as editor repository items. To see how to use the option set when validating data input in standalone editors, run the EditorsValidationDemo shipped with the ExpressEditors Library. To see how to use the option set in combination with the event when validating data input in in-place editors, run the EditorsInPlaceValidationDemo shipped with the ExpressQuantumGrid, ExpressQuantumTreeList, and ExpressVerticalGrid Suites.

                                Show all comments
                                • Raoulw 12.18.2012

                                  6 years is a long wait, but very cool!

                                • Paulo (DevExpress Support) 12.18.2012

                                  I hope you will find this new functionality useful.

                                • Laurent PIERRE 12.19.2012

                                  Whaouuuu... After 6 years, I shall be very curious to know the reason of this waking !!!
                                  Better late than never...
                                  But this implementation has sense only if the other suggestion is also inserted :

                                • Paulo (DevExpress Support) 12.19.2012

                                  Hello Laurent,
                                  Thank you for your feedback. As I can see, the Extended error handling ticket is a duplicate of this (S20031) thread and describes the same functionality. Would you please clarify your comment in greater detail?

                                • Laurent PIERRE 12.20.2012

                                  Hi Paulo,
                                  What I understand in Alex implementation details is much easier to control validation process under any TcxXXXXX control editors. What I mean was form validation with complex validation depending on other field/edit control values like age category for young boy (between 14 and 16 years old) and some displaying areas around any TcxEdit controls to put some explanation text in red, maybe a red frame around controls that have logical problems with the form validation. More on the whole, I imagined a more convivial graphic interface for communication with the user (like show what kind of field is required under this form...).
                                  So, maybe I should look your EditorsValidationDemo to see what kind of features DevEx has implemented. May I download this demo ? If yes, on which link.
                                  Thank you.

                                • Paulo (DevExpress Support) 12.20.2012

                                  Thank you for your reply. You are right, I think that it would be better if you take a look at the EditorsInPlaceValidationDemo demo. After that, we can continue discussing the new functionality.
                                  You can download all our demos via the following direct link:
                                  or use Trial to see the demo source code:

                                • Vladimir Ulchenko 04.03.2013

                                  I just tried this cool feature and I like it. let me guess that probably some bigger customer sponsored its implementation? ;)
                                  well in fact I wanted to highlight the fact that I could find neither description for OnValidateDrawValue event handler nor for one of its params type TcxEditValidateInfo in the help

                                • Paulo (DevExpress Support) 04.04.2013

                                  Hello Vladimir,
                                  You are right, the OnValidateDrawValue event and the TcxEditValidateInfo class descriptions are missing. I have created a separate bug report about this (Documentation - The OnValidateDrawValue event is not described).
                                  The OnValidateDrawValue event is implemented to visualize validation errors in cells. You can conditionally assign the error icon and text via the AData parameter properties in your OnValidateDrawValue event handler. You can either show one of the standard icons (set AData.ErrorType to eetError, eetWarning, or eetInfo) or your custom icon (set AData.ErrorType to eetCustom and provide your icon via AData.ErrorIcon). The AData.ErrorType property is initialized with eetNone. You can leave this property value as is if you do not want to display the validation error in this cell (both the error icon and text). I suggest you review the OnValidateDrawValue event implementations in the EditorsInPlaceValidationDemo shipped with the ExpressQuantumGrid, ExpressQuantumTreeList, and ExpressVerticalGrid Suites, to learn more.

                                Hi Laurent,
                                Thank you for the suggestion.
                                We'll discuss it with our developers, and will post our results here as soon as we come to any conclusion. Thank you for your patience.