Refresh Data
1 Answer 896 Views
Jonny
Top achievements
Rank 1
Jonny asked on 19 Jul 2012, 10:58 AM
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

1 Answer, 1 is accepted

Sort by
0
Jonny
Top achievements
Rank 1
answered on 19 Jul 2012, 11:39 AM
worked it out

dropdownlist.dataSource.read();
sarat
Top achievements
Rank 1
commented on 28 Sep 2012, 07:33 AM

HI Jonny,

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

Thanx
Asked by
Jonny
Top achievements
Rank 1
Answers by
Jonny
Top achievements
Rank 1
Share this question
or