网格展开单击的数据
我有一个 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.
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的建议是坚持使用 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 :)