answered on 02 May 2023, 12:21 AM
| edited on 02 May 2023, 12:22 AM
I've been looking for a way to convert a TelerikTextBox to uppercase as the user types and the CSS is so elegant but unfortunately, that is not how the data is stored to the underlying property that the TextBox is bound to. I really wish this would work because it is so much easier that wiring up an OnChange event for all of the fields I want upper case.
Dimo
Telerik team
commented on 02 May 2023, 07:36 AM
@Brett - if ValueChanged / OnChange is not an option, then use CSS for the user and then override the value before storing it. This will probably require fewer changes in the app. On a side note, why not make the app support string values regardless of the letter casing?
Perhaps you prefer a built-in property for value capitalization, but such a feature must depend on the language (culture) and the resulting complexity doesn't justify the rare usage and low customer demand.
I ended up using the CSS solution and then convert it before I write it back to the database. It's just an extra step but not a huge deal. I just wish the component had the capability to write the data back this way itself. I looked at the MaskEditBox and it looks like you can't do all caps with that either.