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

TypeText doesn't always type double characters

4 Answers 67 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Lim
Top achievements
Rank 1
Lim asked on 14 Sep 2010, 03:22 PM
Hi,
I have this odd problem.  When I use TypeText with to type "football" it is not typing the second "o" and second "l".  It is quite odd.  I also had the problem with "Tennis".

Is this a known issue?  Thanks.

4 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 14 Sep 2010, 10:46 PM
Hi Lim,

No you are the first person to report a problem like this with the TypeText function. I'd like to see if I can repro this. What OS are you running your tests on? What browser are you running your test in? What sort of application are you testing (HTML or Silverlight)? What type of control are you trying to type into? Is your website publicly accessible such that I can get to it and try to reproduce this problem?

Sincerely yours,
Cody
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Lim
Top achievements
Rank 1
answered on 15 Sep 2010, 09:34 AM
I'm using Win XP and testing on IE8 and this is for a Silverlight app.  Unfortunately this is a private app.  The control I'm trying to type into is a AutoComplete box.  I am getting this control by using a FindName so it returns as a FrameworkElement and then I just use the User.TypeText method to enter the text.  

Another odd thing I noticed was that although it wouldnt' type the "oo" and "nn" for Football and Tennis it would type "tt" for Tottenham.  
0
Accepted
Lim
Top achievements
Rank 1
answered on 16 Sep 2010, 05:00 PM
After looking back and reviewing our code I manage to track down the code that was causing this problem.  And it turns out to be a timing issue.  If I slow down the keyPressTime a bit then all the characters are displayed.  

To give you a bit more detail I was using TypeText against a AutoCompleteBox which would show filtered results after each letter was typed.  The developer added a bit more logic to make the prediction better which must have caused an extra bit of delay.  So by slowing down the keyPressTime from 100 to 300 everything worked fine.  

Mystery solved.  Hope this helps the others that are having this problem as well.  And thank goodness for subversion and diff :)
0
Cody
Telerik team
answered on 17 Sep 2010, 07:09 PM
Hi Lim,

That's great news! Thank you so much for the update. I talked to our developers about this issue and we couldn't imagine a scenario that would create the symptom you described. I am very grateful that you took the time to update us with how you solved the problem.

Regards,
Cody
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Lim
Top achievements
Rank 1
Answers by
Cody
Telerik team
Lim
Top achievements
Rank 1
Share this question
or