ShieldUI JavaScript网格的条件扩展/折叠 [英] Conditional expand/collapse of ShieldUI JavaScript grid

查看:87
本文介绍了ShieldUI JavaScript网格的条件扩展/折叠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用ShieldUI jQuery网格组件。

我已经构建了一个层次结构,运行良好。

但是,我有一个要求,我需要只显示展开/折叠符号/列,如果在较低级别有详细记录而不显示它。

任何指针都很受欢迎。

解决方案

要使用ShieldUI jQuery网格实现此功能,您需要使用一些额外的代码并检查 expandButtonCreate 事件处理程序以获取特定值。

这里有一个很好的例子证明了这个功能:

https://demos.shieldui.com/web/grid-general/conditional-hierarchy



我希望这个建议有所帮助。

I am using the ShieldUI jQuery grid component.
I have built a hierarchical structure, which is working well.
However, I have a requirement, where I need to only display the expand/collapse symbol/column if there are detail records on the lower levels and not display it otherwise.
Any pointers are appreciated.

解决方案

To achieve this functionality with the ShieldUI jQuery grid, you need to use a little bit of additional code and check the expandButtonCreate event handler for a specific value.
There is a good example available which demonstrated this functionality here:
https://demos.shieldui.com/web/grid-general/conditional-hierarchy

I hope this suggestion helps.


这篇关于ShieldUI JavaScript网格的条件扩展/折叠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆