hi, i have a big problem, i use a formatter for one of a field in a combogrid to show 'firstName'+'lastName' and load them in combogrid. its work, but for the textfeild option of combogrid it doesnt work and i can just have one of them fore example : 'firstName' . how can combogrid text become 'firstName'+'lastName'.
thank U
///////////////////Combogrid Fromatter/////////////////////////////
function ComboFotmatter(param) {
var cc = $('#cc').combogrid('grid');
cc.datagrid(function(value, row, index) {
var NameFamily = row.param.uacUser.firstName + " - "
+ row.param.uacUser.lastName;
return [ NameFamily ];
})
}
//////////////////////////////////////////////Combogrid////////////////////////////////////////////
<select name="uacUser" id="cc" class="easyui-combogrid" style="width:250px" data-options="
pagination:true,
panelWidth: 500,
textField: 'firstName',
idField:'id',
url: '<c:url value = '/rest/uac/usersetting/uacuser/list' />',
method: 'get',
columns: [[
{field:'firstName',title:'firstName',width:80,formatter:UacUserFormatter},
{field:'personnelCode',title:'personnelCode',width:80,align:'right'},
{field:'isLocked',title:'isLocked',width:80,align:'right'},
{field:'isEnabled',title:'isEnabled',width:80},
]],
fitColumns: true,">
</select>