Bug Report T209510
Visible to All Users

ASPxTokenBox has incorrect values if TextField contains several spaces

created 10 years ago

Hi

I've faced with the issue when used ASPxTokenBox . Sometime when I get list of selected values and expected to get string like "1,2,3,4" I get strings there instead int values. Values becomes "1,2,John Smith,4".
Then I've figured out the reason. If Text Field contains more than 1 space inside or one space before name - it lead to the issue.

I've attached the demo project which demonstrates the issue.
When you select "John Smith" and "Pit, Rogers" in the token box and click button - everything will be ok, value field will contains list of selected values with coma separator. But if you select " Sandra Howk"  or "Alex  Smith" - it lead to issue.

What would you advice to solve this issue? I know that we can check the list before data binding, but I don't think that this is a good idea. Sometime it could be that there will be 2 spaces between words…

Comments (1)

    Hello Pat,

    Thank you for contacting us. I see the problem. I will forward this issue to our R&D team. Our developers will continue working on this problem, and we will keep you informed of any progress.

    Answers approved by DevExpress Support

    created 10 years ago (modified 10 years ago)

    We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

    Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.