I create my drop down list like so
How do i refresh the data source from the server from a JavaScript event?
Thanks
@(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