Kendo ui 网格中的剑道时间选择器:如何获取值?

Kendo ui 网格中的剑道时间选择器:如何获取值?,kendo-ui,kendo-grid,kendo-asp.net-mvc,Kendo Ui,Kendo Grid,Kendo Asp.net Mvc,我在剑道网格中有以下时间选择器: columns.Bound(s => s.StartTime).Title("Start Time").Width(76).ClientTemplate(( @Html.Kendo().TimePicker() .Name("StartTimePicker" + "#=ID#") .Format("HH:mm:ss") .Interval(15) .HtmlAttributes(ne

我在剑道网格中有以下时间选择器:

 columns.Bound(s => s.StartTime).Title("Start Time").Width(76).ClientTemplate((
    @Html.Kendo().TimePicker()
        .Name("StartTimePicker" + "#=ID#")
        .Format("HH:mm:ss")
        .Interval(15)
        .HtmlAttributes(new { data_bind = "value: StartTime" })
        .ToClientTemplate()).ToHtmlString());
这正是我们想要的。我在网格中还有以下按钮:

columns.Command(command => command.Custom("Save").Text("<span class=\"k-icon k-i-check\"></span>Save").Click("saveSchedule")).Width(80).HtmlAttributes(new { @class = "text-center" });

如何获取在网格中选择的时间?

我将此添加到我的saveSchedule函数中:

var timepicker = $(e.currentTarget).closest('tr').find('.k-input');
schedule.StartTime = timepicker[0].value;
解决了这个问题

var timepicker = $(e.currentTarget).closest('tr').find('.k-input');
schedule.StartTime = timepicker[0].value;