RadAsyncUpload TextBox

2 posts, 0 answers
  1. Agm
    Agm avatar
    26 posts
    Member since:
    Sep 2012

    Posted 23 Jul 2013 Link to this post

    Hi,

    I want to set Text for TextBox in RadAsyncUpload control (not for Button)

    If possible, when databinding i want to set the text for that.

    Thank you,

    Regards,
    AGMRAJA
  2. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 26 Jul 2013 Link to this post

    Hi,

    Text field of  RadAsyncUpload is an input element. It can be set only on the client. For example: 

    $('.ruFakeInput.radPreventDecorate').val("TEXT");

    To set text value on the server you could hide the default input and add text box which could be bound:
    <telerik:RadTextBox ID="txtAsyncUpload" runat="server" Text="RadAsyncUpload"/>
    <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" HideFileInput="true"></telerik:RadAsyncUpload>
    Note that RadAsyncUpload does not have DataBound event, do you meant to change it's text on DataBound event of other control?

    Regards,
    Hristo Valyavicharski
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top