起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2967|回复: 7

[处理中1] GRID显示隐藏列问题

[复制链接]

7

主题

25

帖子

153

积分

初级会员

Rank: 2

积分
153
QQ
发表于 2016-10-17 18:55:13 | 显示全部楼层 |阅读模式
本帖最后由 158942079 于 2016-10-17 18:57 编辑

版本:WeX5.3.4.4935
两个功能共用一个界面,通过某一参数进行设置界面中GRID的显示隐藏列,GRID设置宽度为100%,各列自适应;



当先进入显示列的功能时,如图1

图1

图1
正常
再进入隐藏列的功能时,如图2

图2

图2
页面会出现空白

刷新页面,
先进入隐藏列的功能时,如图3

图3

图3
正常
再进入显示列的功能时,如图4

图4

图4
下方出现滚动条

再调用显示/隐藏列的方法后面加了GRID的reload,refresh,autoSize方法后效果一样,应该怎么处理?



1

主题

3232

帖子

1174

积分

金牌会员

Rank: 6Rank: 6

积分
1174
QQ
发表于 2016-10-18 12:04:18 | 显示全部楼层
你是用什么方式隐藏的,在什么实际做的reload ,按道理讲,是可以的啊
在问题解决后,希望大家可以吧解决方法也分享一下,这样可以让更多的X5开发者共同进步,谢谢大家的知识共享
回复 支持 反对

使用道具 举报

7

主题

25

帖子

153

积分

初级会员

Rank: 2

积分
153
QQ
 楼主| 发表于 2016-10-18 13:33:01 | 显示全部楼层
闰土 发表于 2016-10-18 12:04
你是用什么方式隐藏的,在什么实际做的reload ,按道理讲,是可以的啊

隐藏用this.comp("gridxid").hideCol("action");
显示用this.comp("gridxid").showCol("action");
回复 支持 反对

使用道具 举报

7

主题

25

帖子

153

积分

初级会员

Rank: 2

积分
153
QQ
 楼主| 发表于 2016-10-18 15:41:54 | 显示全部楼层
<div component="$UI/system/components/justep/row/row" class="x-row"
          style="height:290px;">
          <div class="x-col x-col-10"/>  
          <div class="x-col">
            <div component="$UI/system/components/justep/grid/grid" hiddenCaptionbar="true"
              altRows="true" class="x-grid-title-center" xid="itemsGd" height="100%"
              width="100%" data="tspSouTenderItemsData" onCellRender="itemsGdCellRender"
              onRowClick="itemsGdRowClick" showRowNumber="true" onIndexChanged="itemsGdIndexChanged">
              <columns>
                <column name="itemNo" editable="false">
                  <editor>
                    <input component="$UI/system/components/justep/input/input"
                      class="form-control input-sm" bind-ref="ref('itemNo')"/>
                  </editor>
                </column>  
                <column name="itemName" editable="true">
                  <editor>
                    <input component="$UI/system/components/justep/input/input"
                      class="form-control input-sm" bind-ref="ref('itemName')"/>
                  </editor>
                </column>  
                <column name="specification" editable="true">
                  <editor>
                    <input component="$UI/system/components/justep/input/input"
                      class="form-control input-sm" bind-ref="ref('specification')"/>
                  </editor>
                </column>  
                <column name="unit" editable="true" editor="component" disableEditorDisplay="false">
                  <editor>
                    <input component="$UI/system/components/justep/input/input"
                      class="form-control input-sm" bind-ref="ref('unit')"/>
                  </editor>
                </column>  
                <column name="demandQuantity" editable="true">
                  <editor>
                    <input component="$UI/system/components/justep/input/input"
                      class="form-control input-sm" bind-ref="ref('demandQuantity')"/>
                  </editor>
                </column>  
                <column name="categoryName"/>  
                <column name="picName" width="110px"/>  
                <column label="操作" name="action" width="50px"/>
              </columns>
            </div>
          </div>  
          <div class="x-col x-col-10"/>
        </div>  
布局代码
回复 支持 反对

使用道具 举报

19

主题

78

帖子

204

积分

中级会员

Rank: 3Rank: 3

积分
204
QQ
发表于 2016-11-7 12:17:00 | 显示全部楼层
想知道+1
回复

使用道具 举报

26

主题

82

帖子

266

积分

中级会员

Rank: 3Rank: 3

积分
266
QQ
发表于 2017-1-16 15:28:43 | 显示全部楼层
想知道++++++++2
回复 支持 反对

使用道具 举报

发表于 2017-1-16 15:43:55 | 显示全部楼层

不支持!
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

26

主题

82

帖子

266

积分

中级会员

Rank: 3Rank: 3

积分
266
QQ
发表于 2017-1-16 15:48:40 | 显示全部楼层
这是个伤心的故事
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2025-6-17 12:10 , Processed in 0.106848 second(s), 27 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表