ajaxfrom 和ajaxgird区别
ajaxfrom适合单条数据,主要是用来显示主表的信息
<hy:ajaxform2 >

<hy:formfield title="料单编号" name="code" readonly="true"/>
<hy:formdrop list="statusMap" title="料单状态" name="ticketStatus" readonly="true"/>
<hy:formdrop title="仓库名称" name="wzSite" list="mapList" required="true"/>

<hy:forminputbutton name="gonghuoIncode" title="供货商" />

</hy:ajaxform2>
ajaxgird适合多条数据,主要显示从表信息,因为一个主表可能对应对个从表信息。

<hy:ajaxgrid />
</hy:ajaxgrid>

ajaxfrom 和ajaxgird的区别

 

 

ajaxform用来回显数据:ajaxform.setRecord(response.getAjaxDataWrap("dataWrapBill").getData()); 

ajaxform.setCellReadonly("wzSite",false); //动态设置某列是否只读

columnId:l定义的列的id;

flag:truefalse

 

 

 

ajaxgrid用来回显数据:ajaxgridlist.setData(response.getAjaxDataWrap("dataWrapList"));

ajaxgridlist.setColumnReadonly("madeDate",false);//动态设置表格列是否可编辑,当设置该列为可编辑时,只有该列的readonly属性为false时,该列才能可编辑

column  单个列名或列名数组

flag  true或false

 postinit="initCustomToolBar():执行用户在表格加载完后自定义的事件

 

相关文章:

  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-08
  • 2021-06-16
  • 2022-02-10
  • 2021-11-26
猜你喜欢
  • 2021-05-28
  • 2021-05-22
  • 2021-12-26
  • 2022-02-14
  • 2022-12-23
  • 2021-05-10
  • 2021-11-02
相关资源
相似解决方案