如何指定单独的 URL 进行编辑和添加?

发布于 2024-12-05 19:19:57 字数 54 浏览 0 评论 0 原文

是否可以指定单独的 URL 进行编辑 (editurl) 和添加行?

Is it possible to specify separate URLs for editing (editurl) and adding rows?

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

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

发布评论

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

评论(1

夜巴黎 2024-12-12 19:19:57

使用 prmEdit 和 prmAdd 选项rel="nofollow noreferrer">navGrid 您可以将不同的选项转发到editGridRow 用于“添加”和“编辑”表单。如果在这两种情况下您都需要使用两个不同的静态 URL,则只需为“添加”和“编辑”选项的url 参数使用不同的值即可。

如果您需要不同的动态 URL,您可以使用onclickSubmit 事件处理程序,它在 Ajax 调用之前修改 URL。在答案中您可以找到相应的代码示例。

Using different prmEdit and prmAdd options of navGrid you can forward different options to editGridRow used in "Add" and "Edit" forms. If in both cases you need to use two different static URLs you can just use different values for url parameters for Add and Edit options.

If you need have different dynamic URLs you can use onclickSubmit event handler which modify the URL just before the Ajax call. In the answer you can find corresponding code examples.

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