Update UI after datasource loaded?

2 posts, 0 answers
  1. Samuel
    Samuel avatar
    8 posts
    Member since:
    Jul 2014

    Posted 12 May 2015 Link to this post

            @using (Html.BeginForm("SignIn", "Account",  FormMethod.Post,  new { @class = "form-horizontal", role = "form", autocomplete="off" }))
                <dl class="dl-horizontal">
                        @Html.LabelFor(x => x.UserName)
                        @Html.TextBoxFor(x => x.UserName, new {@id="user_name", @disabled="true"})
                        @Html.LabelFor(x => x.Password)
                        @Html.PasswordFor(x => x.Password, new {@id="password", @autocomplete="off" , @disabled="true"})
                        @Html.LabelFor(x => x.StoreNum)
                        @(Html.Kendo().DropDownListFor(x => x.StoreNum)
                        .DataSource(ds => ds
                        .Read(r=> r.Action("GetStoreList", "Account")))
                        .HtmlAttributes(new {@id="store_list",@disabled="true" })
                        <input type="submit" value="Log in" class="btn btn-default" disabled="true" id="login_button" />


    I have a drop down list that reads data from my controller.  I need to enable fields and a button in the UI after the data is loaded into the dropdownlist.  How can I do this?

  2. Kiril Nikolov
    Kiril Nikolov avatar
    2543 posts

    Posted 13 May 2015 Link to this post

    Hello Samuel,


    There is an event called dataBound that will be raised, when the widget has finished loading its data. You can use this event to perform your actions. More information is available here:




    Kiril Nikolov
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET AJAX banner
Back to Top