Force input to upper case

2 posts, 1 answers
  1. John
    John avatar
    9 posts
    Member since:
    Sep 2011

    Posted 09 Jan 2012 Link to this post

    I'm trying to force the keyboard input into the MultiColumn ComboBox to upper case and limit it to 3 characters. I tried setting the 'ColumnCharacterCasing' and MaxLength' of the bound grid column, but this didn't work. Any suggestions?
  2. Answer
    Svett avatar
    728 posts

    Posted 12 Jan 2012 Link to this post

    Hi John,

    You should use the following code snippet to do that:

    this.mccb.MultiColumnComboBoxElement.TextBoxElement.TextBoxItem.MaxLength = 3;
    this.mccb.MultiColumnComboBoxElement.TextBoxElement.TextBoxItem.CharacterCasing = CharacterCasing.Upper;

    I hope this helps.

    the Telerik team

    SP1 of Q3’11 of RadControls for WinForms is available for download (see what's new).

Back to Top