Binding text box to telerik upload control

2 posts, 0 answers
  1. Amit
    Amit avatar
    1 posts
    Member since:
    Oct 2012

    Posted 11 Oct 2012 Link to this post

    Hi All,

    I want my textbox to display the name of file selected by telerik upload control. Please find the code snippet below.
      <td>
                                               
                                                    @Html.TextBox(txtBox, null, new { style = string.Format("width:200px") })
                                                </td>
                                                <td style="padding-top: 1%; padding-left: 8%">
                                                    @(Html.Telerik().Upload()
                                                    .Name(BrowseButton)
            //.HtmlAttributes(new { @class = "myCustomClass" })
                                                    .Multiple(false))

    Currently the textbox is displaying null.
  2. Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 11 Oct 2012 Link to this post

    Hi Amit,

    Please use the Upload events to achieve the desired behavior.

    All the best,
    Dimo
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top