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
805
XamComboEditor, how to limit length
posted

Hi,

      I have a xamComboEditor, in which I would like to limit the length to 10. I want to restrict the user input after 10th character is keyed in. I tried using ValueConstraint, it has two issues, (1) it allows user to key in more than 10 characters and (2) it displays an error message after user tabs out of the cell. Neither of these behavior, I want. In my case user must be just restricted to type anything after the 10th character. Could you suggest how to go about this?

Thanks in advance.

Regards,

Balaji Rajendran

CCH - WK

Torrance, CA

Parents
No Data
Reply
  • 27093
    posted

    Hello Balaji,

     

    I have been looking into this for you and it seems there is no built-in way to achieve it. What I can suggest is that you retemplate the XamComboEditor so it uses a XamMaskEditor in its EditTemplate, which would provide the necessary functionality. You can start by copying its original templates to your project (you can get them form the DefaultStyles folder) and modify them of your choosing.

     

    Please let me know if you require any further assistance on the matter.

     

    Sincerely,

    Petar Monov

    Developer Support Engineer

    Infragistics Bulgaria

    www.infragistics.com/support

     

Children