Refresh Data

3 posts, 0 answers
  1. Jonny
    Jonny avatar
    19 posts
    Member since:
    Aug 2012

    Posted 19 Jul 2012 Link to this post

    I create my drop down list like so

    @(Html.Kendo().DropDownListFor(model => model.Project)
                        .Name("Project")
                                           .DataTextField("ProjectCode")
                                           .DataValueField("ProjectCode")
                                           .DataSource(source =>
                                           {
                                               source.Read(read =>
                                               {
                                                   read.Action("GetProjects", "NewTimesheet");
                                               });
                                           })
                                                   .Events(e => e.Select("projectChange"))
                                                   .SelectedIndex(0)
                )


    How do i refresh the data source from the server from a JavaScript event?

    Thanks
  2. Jonny
    Jonny avatar
    19 posts
    Member since:
    Aug 2012

    Posted 19 Jul 2012 Link to this post

    worked it out

    dropdownlist.dataSource.read();
    
  3. sarat
    sarat avatar
    4 posts
    Member since:
    Aug 2012

    Posted 28 Sep 2012 Link to this post

    HI Jonny,

    facing a similar issue .
    Can you please share your code here so that i can see where i am going wrong .

    Thanx
Back to Top