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

Empty text in rad textbox

1 Answer 121 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Erin
Top achievements
Rank 1
Erin asked on 20 Jan 2014, 01:03 PM
Hi
 i have a radtextbox and i want an empty text in it so dat on focus the user enter what he wants. How to get this done? Is there a emptymessage property?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 20 Jan 2014, 01:08 PM
Hi Erin,

Please try the following code snippet:

ASPX:
<telerik:GridTemplateColumn>
    <ItemTemplate>
        <telerik:RadTextBox ID="RadTextBox1" runat="server" Text="Enter Value ">
            <ClientEvents OnFocus="onfocus" />
        </telerik:RadTextBox>
    </ItemTemplate>
</telerik:GridTemplateColumn>

JS:
<script type="text/javascript">
    function onfocus(sender, args) {
        sender.clear();
    }
</script>

Thanks,
Shinu
Tags
Grid
Asked by
Erin
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or