I am trying to push a row to the combobox after it has loaded it's data when the element's "all" attribute is set.
The data gets appended, however I am unable to push this data back to the combobox as it results in recursion with onLoadSuccess.
How can I achieve this ??
<label>Employee</label><input type="text" name="userid" class="easyui-combobox fkey" url="/intra/php/dget.php?_id_=userid" all="y"></input>
$.extend($.fn.combobox.defaults, { valueField: 'val',textField: onLoadSuccess:cbOnLoad});
function cbOnLoad(data){
if($(this).attr('all')){
data.push({txt:'All',val:'*',selected:true});
$(this).combobox('loadData',data);
}
}