网格展开单击的数据

发布于 2025-01-02 06:02:34 字数 349 浏览 2 评论 0原文

我有一个 10 行 5 列的网格。假设第一列是“名称” 因此,数据将类似于

Name
abc
xyz
pqr

现在我的查询是,我想在“abc”单击上展开行,即在“名称”列数据单击上。 并想要显示同一行中其他列的数据。 在此处输入图像描述

我已附上图像,希望这能满足我的要求。

如图所示,RowExpander,我们可以使行可扩展。我想要相同的功能,但不是单击加号图像,而是单击第一列的名称。即从上图中,当用户单击公司栏中的“3m Co”时。该行应该得到扩展。即图像中当前显示的内容。

I have a Grid with say 10 rows and 5 columns. suppose the first column is "Name"
So the data would be some thing like

Name
abc
xyz
pqr

Now My query is, I want to Expand the Row on "abc" click, i.e. on "Name" columns data click.
And wanted to show the data of the other columns from the same row.
enter image description here

I have attached the image , Hope this will clear my requirement.

In the image it is shown that, the RowExpander, we can make the row expandable. I wan the same functionality but not on click the Plus image, but on the name of the first column. i.e. from the above image when user clicks on "3m Co" from the company column. the Row should get expanded. i.e. what currently displayed in the image.

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

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

发布评论

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

评论(1

演多会厌 2025-01-09 06:02:34

我的建议是坚持使用 rowexpander 插件 - 它的 UI 比您想要的更加用户友好。

另一种方法是使用 rowbody 并添加自定义功能以使用 itemclick 侦听器折叠 rowbody - 是的,祝你好运:)

My advice is to stick with the rowexpander plugin - it's UI is much more user friendly than what you want to do.

The other way is to use rowbody and add custom functionality to collapse the rowbody with an itemclick listener - yeah good luck with that :)

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