简体   繁体   English

Telerik Kendo Scheduler选择的活动详细信息

[英]Telerik Kendo Scheduler Selected Event Details

This is regarding Telerik Kendo (MVC) Scheduler control. 这与Telerik Kendo(MVC)调度程序控件有关。 When I double click any specific event, I would like to get some selective details for that event, like Description, Start Time, IsAllDay. 当我双击任何特定事件时,我想获取该事件的一些选择性详细信息,例如“说明”,“开始时间”,“ IsAllDay”。

Not all the data. 并非所有数据。 This is because I want to take all this selected data for the event and show it on a different page, where I may then perform some edit/update. 这是因为我要为事件获取所有这些选定的数据,并将其显示在另一个页面上,然后在该页面上执行一些编辑/更新。 I know the Kendo scheduler offers a pop-up mode to edit data but we don't need that in our application flow. 我知道Kendo调度程序提供了一个弹出模式来编辑数据,但是我们的应用程序流程中不需要它。 That is the catch. 这就是陷阱。

Is it at all possible? 有可能吗?

I am new to Telerik Kendo MVC controls and I have no idea what or how. 我是Telerik Kendo MVC控件的新手,我不知道该怎么做或如何做。 My knowledge on this matters is less than 7 days. 我对此事的了解不到7天。 The resources I searched around are mostly talking about client-side js code. 我搜索的资源主要是关于客户端js代码的。 The control itself is rendered through JS in those examples, as opposed to @Html.Kendo(). 在这些示例中,控件本身是通过JS呈现的,与@ Html.Kendo()相反。 A scheduler in my case. 我的调度程序。 It is not related to my need. 这与我的需求无关。

Can you give me some hints? 你能给我一些提示吗? Can you please show me how. 你能告诉我如何。 And most importantly, is it at all possible. 最重要的是,它是否有可能。 Could you confirm that... 你能确认...

Regards 问候

I suggest using an editor template, it will substitute the default template that is displayed when you double click an event. 我建议使用编辑器模板,它将替代您双击事件时显示的默认模板。

For this you have to:- 为此,您必须:-

-Add the editable property to your scheduler control -将editable属性添加到您的调度程序控件中

  .Editable(editable => editable.TemplateName("CustomEditorTemplate"))

-Add a partial view with the same name as TemplateName specified above. -添加与上面指定的TemplateName同名的局部视图。

-Add the model and html for the selective details to the partial view -将模型和用于选择性详细信息的html添加到局部视图

-If you are allowing any edits on the popup add the data source property for Update -如果您允许在弹出窗口上进行任何编辑,请为更新添加数据源属性

.Update("ActionName", "ControllerName")

This is the editor template API Reference 这是编辑器模板API参考

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM