Asp.net mvc 如何加载syncfusion基本调度器

Asp.net mvc 如何加载syncfusion基本调度器,asp.net-mvc,visual-studio-2010,syncfusion,Asp.net Mvc,Visual Studio 2010,Syncfusion,我正在使用Telerik open access,我想加载syncfusion essential调度程序,我想将调度程序设置为只读。 我想用特定id值显示一个人的特定日程安排,所以我想知道如何将参数传递给action method以加载具有特定id值的日程安排我们可以使用“Ajax.BeginFormExt”和部分视图来实现您的要求。请参考以下代码 查看页面: <%using (Ajax.BeginFormExt("SubmitButton", "Home", new A

我正在使用Telerik open access,我想加载syncfusion essential调度程序,我想将调度程序设置为只读。
我想用特定id值显示一个人的特定日程安排,所以我想知道如何将参数传递给action method以加载具有特定id值的日程安排

我们可以使用“Ajax.BeginFormExt”和部分视图来实现您的要求。请参考以下代码 查看页面:

        <%using (Ajax.BeginFormExt("SubmitButton", "Home", new AjaxOptions { UpdateTargetId = "Schedule", HttpMethod = "Post" }))
          { %>
        <%=Html.TextBox("ownerID")%>
        <input type="submit" id="btn_subit" value="submit" class="Button" width="75px" />enter code here
        <% } %>
        <div id="Schedule">
            <% Html.Rende`enter code here`rPartial("SchedulerView"); %>
        </div>

在这里输入代码
控制器代码:

    public ActionResult SubmitButton(SchedulePropertiesModel model, int ownerID)
    {
        ViewData["data"] = FilterScheduleData(ownerID);
        return PartialView("SchedulerView",model);
    }

    private List<Appointments> FilterScheduleData(int ownerID)
    {
        var query = context.Appointments.Where(p => p.Owner == ownerID);
        return query.ToList();
    } 
public ActionResult提交按钮(SchedulePropertiesModel模型,int ownerID)
{
ViewData[“数据”]=过滤器日程数据(所有者ID);
返回部分视图(“SchedulerView”,模型);
}
私有列表筛选器时间表数据(int ownerID)
{
var query=context.appoints.Where(p=>p.Owner==ownerID);
返回query.ToList();
} 

id值正在传递给控制器,在查询中,我能够看到特定的记录。在此之后,在我的视图页面的syncfusion计划代码中,出现了“未经用户代码处理的无效强制转换异常”异常