jQuery MiniUI

 找回密码
 立即注册
查看: 1704|回复: 1
打印 上一主题 下一主题

datagrid设置多选后无效,但在别的页面上有效 [复制链接]

Rank: 2

跳转到指定楼层
楼主
发表于 2017-7-3 14:45:25 |只看该作者 |倒序浏览
       
代码如下:


<div id="datagrid1" class="mini-datagrid" style="width:700px;height:250px;"   multiSelect="false"
                allowResize="true" showPager="false" allowCellValid="true" showSummaryRow="true" allowCellEdit="true"
                allowCellSelect="true"  editNextOnEnterKey="true"  editNextRowCell="true"    multiSelect="true">
                    <div property="columns">
                                   <div type="indexcolumn"></div>
            <div type="checkcolumn"></div>
                                  <div name="fieldDesc"  field="fieldDesc" headerAlign="center" allowSort="true" width="150" >字段描述
                <input property="editor" class="mini-textbox" style="width:100%;" minWidth="150" />
                    </div>
                   
                     <div name="fieldName"  field="fieldName" headerAlign="center" allowSort="true" width="150" >字段名称
                <input property="editor" class="mini-textbox" style="width:100%;" minWidth="150" />
                    </div>
                   
                     <div name="fieldsign"  field="fieldsign" headerAlign="center" allowSort="true" width="150" >字段标识
                <input property="editor" class="mini-combobox" style="width:100%;" minWidth="150"  url="filedpropsmini.cmd?method=localinitdata_Page&ismg=mg1"  textField="text" valueField="id"  />
                    </div>
                   
                     <div name="fieldnonull"  field="fieldnonull" headerAlign="center" allowSort="true" width="150" >字段是否必填
                <input property="editor" class="mini-combobox" style="width:100%;" minWidth="150"  url="filedpropsmini.cmd?method=localinitdata_Page&ismg=mg2"  textField="text" valueField="id" />
                    </div>
                   
                     <div name="fieldValue"  field="fieldValue" headerAlign="center" allowSort="true" width="150" >设置数据权限
                <input property="editor" class="mini-buttonedit searchbox" style="width:100%;" minWidth="150" />
                    </div>
                   
                     <div name="fieldKzOne"  field="fieldKzOne" headerAlign="center" allowSort="true" width="150" >设置默认值
                <input property="editor" class="mini-buttonedit searchbox" style="width:100%;" minWidth="150" />
                    </div>             
                                </div>                                                                     
            </div>

Rank: 8Rank: 8

沙发
发表于 2017-7-3 15:35:18 |只看该作者
因为你同时写了multiSelect=“false”和multiSelect="true"
前面的起作用,后面的无效。

<div id="datagrid1" class="mini-datagrid" style="width:700px;height:250px;"   multiSelect="false"
                allowResize="true" showPager="false" allowCellValid="true" showSummaryRow="true" allowCellEdit="true"
                allowCellSelect="true"  editNextOnEnterKey="true"  editNextRowCell="true"    multiSelect="true">

Archiver|普加软件

GMT+8, 2024-9-29 06:20 , Processed in 1.046518 second(s), 9 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部