如何加载syncfusion基本调度程序

时间:2012-09-18 06:38:51

标签: asp.net-mvc visual-studio-2010 syncfusion

我正在使用Telerik开放访问,我想加载syncfusion基本调度程序,我想将调度程序设置为只读。 并且我想显示具有特定id值的人的特定日程安排,所以我想知道如何将参数传递给action方法以加载具有特定id值的日程表

1 个答案:

答案 0 :(得分:1)

我们可以使用部分视图的“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();
    }