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

QQ登录

只需一步,快速开始

查看: 20402|回复: 20

[结贴] 如何给grid添加上下滚动条

[复制链接]

15

主题

79

帖子

278

积分

中级会员

Rank: 3Rank: 3

积分
278
发表于 2018-7-17 09:59:04 | 显示全部楼层 |阅读模式
版本: 小版本号:
数据库: 服务器操作系统: 应用服务器:
客户端操作系统: 浏览器:
参照文档中心页面加了panel的话 grid数据就显示不出

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36196
发表于 2018-7-17 10:16:08 | 显示全部楼层
表头可以显示,只是数据不显示?
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

15

主题

79

帖子

278

积分

中级会员

Rank: 3Rank: 3

积分
278
 楼主| 发表于 2018-7-17 10:23:59 | 显示全部楼层
都没显示出来
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36196
发表于 2018-7-17 10:34:45 | 显示全部楼层
具体的现象截图看一下
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

15

主题

79

帖子

278

积分

中级会员

Rank: 3Rank: 3

积分
278
 楼主| 发表于 2018-7-17 10:53:10 | 显示全部楼层
一个是加了panel;一个是把grid height改成100%但是长度变得很短。

)NX3VT$433WROR1(RXVTDU9.png
IQKGYQW66R}3_BX85RIZCCU.png
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36196
发表于 2018-7-17 11:32:30 | 显示全部楼层
把.w文件发一下看看
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

15

主题

79

帖子

278

积分

中级会员

Rank: 3Rank: 3

积分
278
 楼主| 发表于 2018-7-17 12:01:27 | 显示全部楼层
<?xml version="1.0" encoding="utf-8"?>

<div xmlns="http://www.w3.org/1999/xhtml" xid="window" class="window" component="$UI/system/components/justep/window/window"
  design="device:pc">  
  <div component="$UI/system/components/justep/model/model" xid="model" style="height:auto;left:264px;top:676px;">
    <div component="$UI/system/components/justep/data/bizData" xid="treeData"
      autoLoad="true" autoNew="false" concept="BASE_districts" columns=""
      isTree="true">
      <writer xid="default1" action="/carFin/base/logic/action/saveBASE_districtsAction"/>  
      <creator xid="default2" action="/carFin/base/logic/action/createBASE_districtsAction"/>
      <reader action="/carFin/base/logic/action/queryBASE_districtsAction"/>
      <treeOption parentRelation="fBaDistDetailUplink" nodeKindRelation=""
        rootFilter=""/>
    </div>
  <div component="$UI/system/components/justep/data/bizData" autoLoad="true" xid="detailData" concept="BASE_districts_entry"><creator xid="default3" action="/carFin/base/logic/action/createBASE_districts_entryAction"></creator>
  <reader xid="default4" action="/carFin/base/logic/action/queryBASE_districts_entryAction"></reader>
  <writer xid="default5" action="/carFin/base/logic/action/saveBASE_districts_entryAction"></writer>
  <master xid="default6" data="treeData" relation="fBaDistParentUplink"></master></div></div>  
  <div class="container-fluid" xid="view">
    <div component="$UI/system/components/bootstrap/row/row" class="row" xid="row1">
      <div class="col col-xs-3" xid="col1" style="overflow: auto;">
        
      
  <div component="$UI/system/components/justep/grid/grid" hiddenCaptionbar="true" altRows="true" class="x-grid-no-bordered" xid="grid2" data="treeData" directEdit="false" height="auto" width="100%" appearance="tree" expandColumn="fName" virtualRootLabel="" useVirtualRoot="false">
          <columns xid="columns2">
            <column name="fName" xid="column1" />
          </columns>
        </div></div>  
      <div class="col col-xs-9 col-spliter-left" xid="col2">
        <div component="$UI/system/components/justep/grid/grid" xid="mainGrid" data="detailData" width="100%" hiddenCaptionbar="true" height="auto" class="x-grid-no-bordered">
   <columns xid="column">
    <column name="fPinyin" editable="true" xid="column5">
     <editor xid="editor4">
      <input component="$UI/system/components/justep/input/input" class="form-control" bind-ref="ref('fPinyin')" xid="input4"></input></editor> </column><column name="fName" editable="true" xid="column3">
     <editor xid="editor2">
      <input component="$UI/system/components/justep/input/input" class="form-control" bind-ref="ref('fName')" xid="input2"></input></editor> </column><column name="fCity" editable="true" xid="column4">
     <editor xid="editor3">
      <input component="$UI/system/components/justep/input/input" class="form-control" bind-ref="ref('fCity')" xid="input3"></input></editor> </column><column name="fProvince" editable="true" xid="column6">
     <editor xid="editor5">
      <input component="$UI/system/components/justep/input/input" class="form-control" bind-ref="ref('fProvince')" xid="input5"></input></editor> </column><column name="fZip" editable="true" xid="column7">
     <editor xid="editor6">
      <input component="$UI/system/components/justep/input/input" class="form-control" bind-ref="ref('fZip')" xid="input6"></input></editor> </column><column name="fDescription" editable="true" xid="column2">
     <editor xid="editor1">
      <input component="$UI/system/components/justep/input/input" class="form-control" bind-ref="ref('fDescription')" xid="input1"></input></editor> </column>
     
     
     
     
     </columns> </div></div>
    </div>
  </div>
</div>
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36196
发表于 2018-7-17 13:27:25 | 显示全部楼层
你发的就没有panel组件的
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

15

主题

79

帖子

278

积分

中级会员

Rank: 3Rank: 3

积分
278
 楼主| 发表于 2018-7-17 13:55:50 | 显示全部楼层
<?xml version="1.0" encoding="utf-8"?>

<div xmlns="http://www.w3.org/1999/xhtml" xid="window" class="window" component="$UI/system/components/justep/window/window"
  design="device:pc">  
  <div component="$UI/system/components/justep/model/model" xid="model" style="height:auto;left:264px;top:676px;">
    <div component="$UI/system/components/justep/data/bizData" xid="treeData"
      autoLoad="true" autoNew="false" concept="BASE_districts" columns=""
      isTree="true">
      <writer xid="default1" action="/carFin/base/logic/action/saveBASE_districtsAction"/>  
      <creator xid="default2" action="/carFin/base/logic/action/createBASE_districtsAction"/>
      <reader action="/carFin/base/logic/action/queryBASE_districtsAction"/>
      <treeOption parentRelation="fBaDistDetailUplink" nodeKindRelation=""
        rootFilter=""/>
    </div>
  <div component="$UI/system/components/justep/data/bizData" autoLoad="true" xid="detailData" concept="BASE_districts_entry"><creator xid="default3" action="/carFin/base/logic/action/createBASE_districts_entryAction"></creator>
  <reader xid="default4" action="/carFin/base/logic/action/queryBASE_districts_entryAction"></reader>
  <writer xid="default5" action="/carFin/base/logic/action/saveBASE_districts_entryAction"></writer>
  <master xid="default6" data="treeData" relation="fBaDistParentUplink"></master></div></div>  
  <div class="container-fluid" xid="view">
    <div component="$UI/system/components/bootstrap/row/row" class="row" xid="row1">
      <div class="col col-xs-3" xid="col1" style="overflow: auto;">
        
      
  
  <div component="$UI/system/components/justep/panel/panel" class="x-panel x-full" xid="panel1">
   <div class="x-panel-top" xid="top1"></div>
   <div class="x-panel-content" xid="content1"><div component="$UI/system/components/justep/grid/grid" hiddenCaptionbar="true" altRows="true" class="x-grid-no-bordered" xid="grid2" data="treeData" directEdit="false" height="auto" width="100%" appearance="tree" expandColumn="fName" virtualRootLabel="" useVirtualRoot="false">
          <columns xid="columns2">
            <column name="fName" xid="column1" />
          </columns>
        </div></div>
   <div class="x-panel-bottom" xid="bottom1"></div></div></div>  
      <div class="col col-xs-9 col-spliter-left" xid="col2">
        <div component="$UI/system/components/justep/grid/grid" xid="mainGrid" data="detailData" width="100%" hiddenCaptionbar="true" height="auto" class="x-grid-no-bordered">
   <columns xid="column">
    <column name="fPinyin" editable="true" xid="column5">
     <editor xid="editor4">
      <input component="$UI/system/components/justep/input/input" class="form-control" bind-ref="ref('fPinyin')" xid="input4"></input></editor> </column><column name="fName" editable="true" xid="column3">
     <editor xid="editor2">
      <input component="$UI/system/components/justep/input/input" class="form-control" bind-ref="ref('fName')" xid="input2"></input></editor> </column><column name="fCity" editable="true" xid="column4">
     <editor xid="editor3">
      <input component="$UI/system/components/justep/input/input" class="form-control" bind-ref="ref('fCity')" xid="input3"></input></editor> </column><column name="fProvince" editable="true" xid="column6">
     <editor xid="editor5">
      <input component="$UI/system/components/justep/input/input" class="form-control" bind-ref="ref('fProvince')" xid="input5"></input></editor> </column><column name="fZip" editable="true" xid="column7">
     <editor xid="editor6">
      <input component="$UI/system/components/justep/input/input" class="form-control" bind-ref="ref('fZip')" xid="input6"></input></editor> </column><column name="fDescription" editable="true" xid="column2">
     <editor xid="editor1">
      <input component="$UI/system/components/justep/input/input" class="form-control" bind-ref="ref('fDescription')" xid="input1"></input></editor> </column>
     
     
     
     
     </columns> </div></div>
    </div>
  </div>
</div>
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36196
发表于 2018-7-17 14:10:59 | 显示全部楼层
1.window组件上的class上container-fluid x-full-screen勾选上
2.col上overflow: auto;设置去掉
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-8-19 02:46 , Processed in 0.059679 second(s), 27 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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