This is a migrated thread and some comments may be shown as answers.

RadComboBox OnClientKeyPressing Issue

1 Answer 149 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Ravi Shankar
Top achievements
Rank 1
Ravi Shankar asked on 14 Sep 2010, 05:54 PM

Hi,
In radcombobox I am trying to capture and change the case of the characters to upper/lower, then and there the user types in a text.
I have been following the article referenced here.
http://www.telerik.com/community/forums/aspnet-ajax/input/how-to-make-user-entry-in-radtextbox-as-uppercase.aspx

I am using the  OnClientKeyPressing event in the RadComboBox and the AllowCustomText property is set to "True".

I am getting the error that "Object doesn't support the method" error when accessing
args.set_newValue(args.get_newValue().toUpperCase());
.

Please help out.

1 Answer, 1 is accepted

Sort by
0
Cori
Top achievements
Rank 2
answered on 14 Sep 2010, 06:35 PM
Hello Ravi,

The RadComboBox doesn't have a set_newValue/get_newValue method for the args parameter for the OnClientKeyPressing event. Also, I doubt you can perform the upper case change in that event, since it won't tell you the character that was pressed other than it's key code. I would suggest to handle the TextChange event and do the upper case change there, by using the RadComboBoxes set_text and get_text methods.

I hope that helps.
Tags
ComboBox
Asked by
Ravi Shankar
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
Share this question
or