dotnetcore / dotnetcore/WTM

MakeAction中使用SetOnClickScript如何传递当前行实体的某个属性

Open
#599 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
4.3k
Forks
896
PR merge metrics
No merged PRs in 30d

Description

官方文档中的
//设置IsRedirect和ShowDialog为true,弹出新浏览器窗口,并在每行显示按钮
this.MakeAction("Home","Show","预览","查看详情", GridActionParameterTypesEnum.SingleId,"test").SetShowDialog(true).SetIsRedirect(true).SetShowInRow(true).SetHideOnToolBar(true).SetQueryString("a=2"),
点击的时候是在新窗口打开,但是路径中的URL是框架的主页面,不是预想的URL地址内容。

或者说,MakeAction定义了一个按钮,如何点击这个按钮的时候,可以获取到这一行的内容?
类似下面这个提问。
![}3W_5_1_XMQI(UCE7LF 2E6](https://user-images.githubusercontent.com/3361135/225894052-de667d94-790b-406c-8e3f-9f0dae2233ac.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.