jQuery MiniUI

标题: datagrid设置多选后无效,但在别的页面上有效 [打印本页]

作者: a793955696    时间: 2017-7-3 14:45:25     标题: datagrid设置多选后无效,但在别的页面上有效

       
代码如下:


<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>
作者: felt    时间: 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">




欢迎光临 jQuery MiniUI (http://miniui.com/discuss/) Powered by Discuz! X2