| 
注册时间2016-11-7最后登录1970-1-1阅读权限10积分218精华0帖子61
 
  
 | 
| datagrid的列如果是在js里拼上去的,那换锁定指定列的参数是不是就不起作用了? var columns = [{field: "entryCode",header:"价格项代码", width: 250, headerAlign: "center",align:"center"},
 {field: "entryName",header:"价格项名称", width: 250, headerAlign: "center",align:"center"}];
 for(var i=0;i<commodityLotNoArray.length;i++){
 columns.push({field:"settlementValue"+i, header:commodityLotNoArray, width: 250,headerAlign:"center",align:"center",
 editor: { type: "spinner",allowLimitValue:false,changeOnMousewheel:false,format:"n2",allowNull:"true",value:null}});
 }
 priceGrid.set({
 columns:columns,
 data:text
 });我在页面上是<div id="priceGrid" class="mini-datagrid"
 style="width: 100%; height: 280px;" borderStyle="border:0"
 multiSelect="true" allowResize="false" allowAlternating="true" showPager='true'
 enableHotTrack="true" showColumnsMenu="true" allowCellSelect="true" oncellbeginedit='checkValue'
 idField="settlementId" showPagerButtonText="true"allowCellEdit="true"
 frozenStartColumn="0" frozenEndColumn="1" >这么写的,求解?
 
 | 
 |