|
Title: Detecting if a combo select was by a user Post by: devnull on July 07, 2016, 08:36:07 PM I need to be able to detect whether the onSelect() function in a combo was triggered by the user clicking on the control with their mouse, or whether the select event was triggered by the combobox('select') method.
This works, but it is using up 2 events, is there a better way ??? Code: $.extend($.fn.combobox.defaults,{ Thanks Title: Re: Detecting if a combo select was by a user Post by: stworthy on July 08, 2016, 01:45:06 AM Here is another solution to override the click handler.
Code: <script type="text/javascript"> Title: Re: Detecting if a combo select was by a user Post by: devnull on July 26, 2016, 10:01:59 PM Thanks very much for helping, but I would like to still use the OnSelect() event, but be able to detect whether the event was user initiated or programmatically selected.
Title: Re: Detecting if a combo select was by a user Post by: wade.zhu on August 14, 2016, 11:22:07 PM I've had the same problem :(
i have a comobox with 'onSelect' options, and i want get the value of a numberbox when user select a list item. but the numberbox may NOT ready when onSelect auto triggered during the initial loading of form data Code: <select id="cbxDemo" class="easyui-combobox" data-options="onSelect : function(rec) {i'm now using try-catch to avoid undefined exception, but i think it is not a good way. Title: Re: Detecting if a combo select was by a user Post by: stworthy on August 14, 2016, 11:44:12 PM You can call .data('numberbox') to detect if the numberbox is created successfully.
Code: <select id="cbxDemo" class="easyui-combobox" data-options=" |