Telerik MVC 网格窗口生成器

发布于 2024-11-03 06:19:18 字数 498 浏览 5 评论 0原文

当尝试创建编辑窗口时,Telerik MVC Grid 在网格中包含此内容。

我不明白“动作配置器”是什么以及如何使用它?

GridEditingSettingsBuilder 窗口(操作配置器)

希望我明白这里是 API 参考的链接

http://www.telerik.com/help/aspnet-mvc/m_telerik_web_mvc_ui_ Fluent_grideditingsettingsbuilder_1_window.html

.Editable(editing => editor.Mode(GridEditMode.PopUp).Window(==== 我如何传递一些东西这里或什么)

Telerik MVC Grid has this in the grid when trying to create a editing window.

I don't understand what the "Action configurator" is and how is it used?

GridEditingSettingsBuilder Window(Action configurator)

hopefully i am making sense here is the link to the API reference

http://www.telerik.com/help/aspnet-mvc/m_telerik_web_mvc_ui_fluent_grideditingsettingsbuilder_1_window.html

.Editable(editing => editing.Mode(GridEditMode.PopUp).Window(==== how do i pass something here or what)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

じ违心 2024-11-10 06:19:18

适用于 ASP.NET MVC 的 Telerik UI 工具的流畅 API 提供了许多“配置器”,使您能够快速配置各种行为和设置。

在本例中,“Action”是类型,“configurator”只是 API 变量名称。这是一个 API 端点,允许您控制网格提供的弹出窗口以进行行编辑。要使用它,您需要编写如下代码:

.Editable(editing => editing.Mode(GridEditMode.PopUp).Window(w => w.Modal(true)))

其中“w”可以让您访问所有各种窗口配置选项(而且有很多!)。您可以通过检查 WindowBuilder 成员 API 来查看可用配置选项的完整列表。

此模式通常适用于具有 Telerik Extensions 的所有“配置器”。

希望有帮助。

The fluent API for the Telerik UI tools for ASP.NET MVC provide many "configurators" that enable you to quickly configure various behaviors and settings.

In this case, "Action" is the type, and "configurator" is simply the API variable name. This is an API endpoint that allows you to take control over the pop-up Window provided by the Grid for row editing. To use it, you'd write code like this:

.Editable(editing => editing.Mode(GridEditMode.PopUp).Window(w => w.Modal(true)))

Where "w" would give you access to all of the various Window configuration options (and there are a lot!). You can review a full list of the available config options by examining the WindowBuilder members API.

This pattern generally applies for all "configurators" with the Telerik Extensions.

Hope it helps.

寂寞陪衬 2024-11-10 06:19:18

托德是正确的,采用前面提到的可编辑属性的格式。如果可编辑属性足够智能,可以让这些数据自行编辑,那肯定会很好,但不幸的是事实并非如此!最终,您需要正确的数据访问代码才能执行不同的操作。

了解其设置方式的最佳方法是最终看一个示例。

查看此示例:

Telerik Ajax 编辑示例

在此示例中,您需要查看在视图和控制器上了解实现这一点需要什么。最终,您需要在控制器上编写 CRUD 操作,并从 gridview 上的配置代码链接到这些操作。

Todd is correct, in the format of the editable attribute mentioned previously. It sure would be nice if the editable attribute was smart enough to make this data editable on it's own, but unfortunately it is not! Ultimately, you will need to right data access code in order to perform different actions.

The best way to understand how it is setup, is to ultimately take a look at an example.

Check out this example:

Telerik Ajax Editing Example

In this example you will need to look at the View and Controller to understand what is needed to make this happen. Ultimately you will need to write CRUD operations on your controller, and link to those operations from you configuration code on your gridview.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文