[英]how to make ExtJS grid summary feature show above grid header
I know it is possible to use grid's summary plugin and dock it to the bottom or top of the grid (underneath the header part), however I was wondering if it is possible and how would one go about putting the summary right above the grid headers.. 我知道可以使用网格的摘要插件并将其停靠在网格的底部或顶部(在标题部分下方),但是我想知道是否有可能,以及如何将摘要放在网格标题上方..
Thanks. 谢谢。
Evan Trimboli gave the correct hint: You can adjust the weight of the summaryBar. Evan Trimboli给出了正确的提示:您可以调整summaryBar的权重。 This does not take immediate effect at runtime, so to enforce the new weight being used, you will have to call
moveDocked
: 这不会在运行时立即生效,因此要强制使用新的权重,必须调用
moveDocked
:
panel.down('[itemId=summaryBar]').setWeight(99);
panel.moveDocked(panel.down('[itemId=summaryBar]'), 'top');
https://fiddle.sencha.com/#fiddle/1g4c https://fiddle.sencha.com/#fiddle/1g4c
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.