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

EmptyMessage remains in place if text is typed in too quickly after render or enable

1 Answer 28 Views
Input
This is a migrated thread and some comments may be shown as answers.
Dean
Top achievements
Rank 1
Dean asked on 06 Oct 2010, 04:09 PM
I am currenlty utilizing the "EmptyMessage" property of a RadTextBox. There is also a checkbox on the page that enables the RadTextBox when clicked. If the user hovers his mouse over the RadTextBox before it is enabled, the user can then type in text and the empty message remains in place in addition to the user input. I was also able to produce this behavior on the demo site (http://demos.telerik.com/aspnet-ajax/input/examples/radtextbox/firstlook/defaultcs.aspx) if I refreshed the page with my pointer over the control and started typing before render is complete. The style also remains in the EmptyMessage style, so when you're typing it is grayed italics text. This behavior is unacceptable to my client. Any fixes/suggestions?

Thanks,
Dean

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 07 Oct 2010, 07:42 AM
Hi Dean,

The RadTextBox requires its client object to be initialized in order to work. The client object initialization takes place after the page source has been loaded and after the MS AJAX client library itself has been initialized. So any actions the user executes before that, take place "behind the back of the control".

Apart from most natural workaround to wait for a 1-2 seconds before typing, you can include the RadTextBox inside a container with a visibility:hidden CSS style and show it after its client Load event. Or, use a Label instead of an EmptyMessage.

Regards,
Dimo
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
Input
Asked by
Dean
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or