列表字段显示两个列的值
<t:dgCol title="用户名(电话)" field="userName" extendParams="formatter:nametel;" query="true" frozenColumn="true" extend="{style:{width:'300px';color:'red'};value:'小王';datatype:'*';}" width="120"></t:dgCol> function nametel(value,row,index){ var res = ""; res=value+"("+row.mobilePhone+")"; return res; }
列表字段显示ajax加载的值
function getDiqu(value,row,index){ var res = ""; if(value!=''){ $.ajax({ url:"tSsAreaController.do?getDiQuWholeName&id="+value, type:"get", dataType:"json", async:false, success:function(data){ if(data!=null){ res = data; } } }); } return res; }