jQuery jQGrid展开/折叠网格上的标题图层点击 [英] JQuery jQGrid expand /collapse grid on caption layer click

查看:159
本文介绍了jQuery jQGrid展开/折叠网格上的标题图层点击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何方法通过点击标题图层来展开/折叠网格?
我有3个非常大的表格,这些表格显示在默认加载的1680x1050屏幕上,折叠,并且每次用户想要展开/折叠表格时,都必须点击展开/折叠按钮标题图层,这是非常远的位置。

解决方案

您可以使用像

b $ b

  $(。ui-jqgrid-titlebar-close,$(list)[0] .grid.cDiv).click(); 

您可以看到现场演示此处



已更新:可能会帮助您只是将捕捉栏中的最小化元素放在左侧大小而不是默认的正确位置上?您可以使用

  .ui-jqgrid .ui -jqgrid-titlebar-close {position:relative; top:auto; margin:0; float:left} 

查看更新演示此处

UPDATED 2 :另请参阅另一个示例,其中点击整个网格截图以展开/折叠网格。


Is there any method to expand/collapse the grid by clicking on the caption layer? I have 3 very large tables that are displayed on a 1680x1050 screen which are loaded by default, collapsed, and each time the user wants to expand/collapse a table, he has to click on the expand/collapse button of the caption layer, which is "very far" positioned.

解决方案

You can use construct like

$(".ui-jqgrid-titlebar-close",$("list")[0].grid.cDiv).click();

You can see live demo here.

UPDATED: Probably it will help you just to place the minimize element of from the capture bar on the left size instead of default right position? You can do this with

.ui-jqgrid .ui-jqgrid-titlebar-close {position:relative;top:auto;margin:0;float:left}

see updated demo here.

UPDATED 2: See also one more example where click on the whole grid capture follows to the expand/collapse the grid.

这篇关于jQuery jQGrid展开/折叠网格上的标题图层点击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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