jQWidgets Forums
jQuery UI Widgets › Forums › Lists › ComboBox › Drop down not disabled
Tagged: combobox, disabled, jqxComboBox, multiselect, selectItem
This topic contains 8 replies, has 2 voices, and was last updated by Freak 10 years, 10 months ago.
-
AuthorDrop down not disabled Posts
-
Hi,
In combobox I am selecting a value using selectItem method and after that I am disabling it. It is working fine but when I click on selected item, it shows drop down even though combobox is disabled. Can you give me solution for this?
Thanks,
FreakHello Freak,
Please provide us with a sample code which reproduces the reported issue and make sure you are using the latest version of jQWidgets (3.2.2).
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hi,
I am using latest version only i.e 3.2.2.
Below is my code for rendering combobox –var _status = new Array(“Available”,”Deleted”,”Registered”);
$(‘#divStatus’).jqxComboBox({source: _status , selectedIndex: 0, width: ‘250’, height: ’25px’});After that I am selecting value and disabling combobox as –
$(‘#divStatus’).jqxComboBox({‘selectItem’,’Deleted’});
$(“#divStatus”).jqxComboBox({ disabled: true });Still it is showing drop down after clicking selected item.
Hi Freak,
The issue comes from your incorrect call of selectItem. Instead of:
$(‘#divStatus’).jqxComboBox({‘selectItem’,'Deleted’});
it should be:
$('#divStatus').jqxComboBox('selectItem', 'Deleted');
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hi,
I tried with $(‘#divStatus’).jqxComboBox(‘selectItem’, ‘Deleted’);
But still it is the same. Actually I am getting value from a hidden field and then selecting item as –
$(‘#divStatus’).jqxComboBox(‘selectItem’, $(‘#hdnStatus’).val());Regards,
FreakHi Freak,
Please check out this fiddle: http://jsfiddle.net/Dimitar_jQWidgets/R453A/ and make sure you are using the latest version of jQWidgets (3.2.2).
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hi,
Sorry, I forgot to tell that it is a meltiselect combobox and I am using latest version only.
In your sample also you can see the drop down if you set multiSelect=trueRegards,
FreakHi Freak,
Thank you for your feedback. We confirm the reported issue. It will be fixed in the next version of jQWidgets.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hi Dimitar,
Thank you very much….
Regards,
Freak -
AuthorPosts
You must be logged in to reply to this topic.