Title: Combogrid Textfeild Post by: ftmh on April 25, 2014, 09:47:37 PM 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> Title: Re: Combogrid Textfeild Post by: stworthy on April 26, 2014, 07:45:45 AM Please try to use the 'loadFilter' function to generate a new field named 'fullName', which combines 'firstName' and 'lastName' together. Assign this 'fullName' field to the 'textField' property to let it display the full name information.
Code: <select name="uacUser" id="cc" class="easyui-combogrid" style="width:250px" data-options=" |