Title: push to data array onLoadSuccess [solved] Post by: devnull on March 01, 2013, 04:00:49 AM 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 ?? Code: <label>Employee</label><input type="text" name="userid" class="easyui-combobox fkey" url="/intra/php/dget.php?_id_=userid" all="y"></input> Code: $.extend($.fn.combobox.defaults, { valueField: 'val',textField: onLoadSuccess:cbOnLoad}); Title: Re: push to data array onLoadSuccess Post by: devnull on March 01, 2013, 05:35:01 AM solved by pushing to first element and then checking if Exists:
Code: function cbOnLoad(data){ Is there a better / more efficient method ?? |