Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
145
UltraNumericEditor Questions
posted

I never worked with the UltraNumbericEditor before or any editor for that matter. I am trying to dynamically create cells based on an object list. One of the options I want for the user is to have the ability to type in a number. The cell could be an integer, a currency, or a double datatype. I don't understand the mask options. I don't understand what the following properties mean:

1. .MaskDisplayMode

2. MaskClipMode

3. MaskInput

Also, is there a way to create custom error messages, specifically, when the user types in a number outside the Min/Max range?

Is there also any sample code I could take a look at?

Parents
No Data
Reply
  • 21795
    Offline posted

    Hello Peter,

    Please find bellow what the purpose of all these properties is:

    1. MaskDisplayMode – this property determines what the editor will show when it is not in edit mode. You can show or hide Literals, these are non value chars in your mask, as well as Prompt Chars, these are place holders where user can enter some value. Note this will work only if you have set the MaskInput property. More about MaskDisplayMode you may find in our online documentation here MaskDisplayMode;
    2. MaskClipMode – this property determines what will go to the clipboard when the text of the control is copied. Again you can include Literals and/or Prompt Chars or none of these. More about MaskClipMode you may find in our online documentation here MaskClipMode;
    3. MaskInput – this property specifies what user can input in the control. Here you can specify the Prompt Chars as well as any Literals you may need. Follow the next link to our online documentation for additional information about MaskInput.

    Regarding your questions, yes there is a way to show custom error messages when the value of the editor does not meet some custom criteria. To do so you can use UltraValidator component. Follow the next link to our online documentation where is shown how you can validate the user input in UltraNumericEditor as well as code is provided “Handling a Validation Error”.

    Please let us know if any additional questions on this matter arise.

Children
No Data