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

Change EmptyMessage, BackGround change from javascript

2 Answers 129 Views
Input
This is a migrated thread and some comments may be shown as answers.
Naresh Goradara
Top achievements
Rank 2
Naresh Goradara asked on 14 Jul 2010, 11:29 AM
Hi,
I am using Rad Ajax Control Q2 2010 form development.
I want to change RadTextBox's EmptyMessage from javascript. Can I?
And Can I change its background image from javascript too?

Please suggest a way to change it from javascript.

Best Regards,
Naresh Goradara

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 14 Jul 2010, 12:05 PM
Hello Naresh,

The EmptyMessage can be changed client-side by using the RadTextBox API:

http://www.telerik.com/help/aspnet-ajax/input_clientsideradtextbox.html

RadTextBox styles can be changed on the client as shown at the bottom of this article:

http://www.telerik.com/help/aspnet-ajax/input_clientsidebasics.html

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
0
Shinu
Top achievements
Rank 2
answered on 14 Jul 2010, 12:14 PM
Hello Naresh,

The following client code will help you in setting the EmptyMessage from client side.

JavaScript:
<script type="text/javascript">
    function setEmpty() {
        var input = $find('<%= RadTextBox1.ClientID %>');
        input.set_emptyMessage("Search Content here...");
        input.updateDisplayValue();
    }
</script>


I hope the documentation will help you in changing the appearance style of RadInput controls on the client:
Client-Side Basics

-Shinu.
Tags
Input
Asked by
Naresh Goradara
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Shinu
Top achievements
Rank 2
Share this question
or