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

RadInputManager with TextSetting, SetFocus does clear the Text

1 Answer 185 Views
This is a migrated thread and some comments may be shown as answers.
Morten Louw
Top achievements
Rank 1
Morten Louw asked on 22 Oct 2010, 11:32 AM
Hi all,

I am using the RadInputManager on a webform. I have a textbox i want to control. It must have content, so, I have set the TextBoxSettings attributes like this:

EmptyMessage="type.." Validation-IsRequired="true"

If I click the textbox, the "type.." text disappears, and I can type in my content - no problems.
But when I want the cursor to be in the control set in page load, the "type.." text remains, and when I type "123 " in the box, it gets like this: "123 type..". And it's with the gray "disabled" look.

I have tried to write the javascript my self, in stead of using the Page's SetFocus method. Same behaviour occures.

Any one having experience with this issue?

Kind regards


1 Answer, 1 is accepted

Sort by
Telerik team
answered on 26 Oct 2010, 09:24 AM
Hi Morten,

One option to make it work is if you are using RadAjaxManager, to focus the control via its FocusControl server-side method:

Alternatively you can focus the input client-side like this:
<script type="text/javascript">
    function pageLoad()
        // or

Let us know if that helps.

Kind regards,
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
Asked by
Morten Louw
Top achievements
Rank 1
Answers by
Telerik team
Share this question