Categories | Question details Back To List | ||||||||
DHTMLXCOMBO Auto Width I have set this property z.enableOptionAutoWidth(true); and aslo apply this to CSS file .dhx_combo_list div{ white-space:nowrap; } and also this .dhx_combo_list{ overflow-x:auto; } but still having problem combobox doesnot resize auto width Answer posted by Alex on Feb 09, 2009 08:55 The issue can not be recreated locally. Please provide the sample where it can be reproduced at support@dhtmlx.com Answer posted by Wasi on Feb 09, 2009 23:07 Plz Find attached sample and plz help me to solve this issue.
Thanks , In Advance Attachments (1)
Answer posted by Alex (support) on Feb 10, 2009 02:57 The dhtmlxcombo_whp.js extension is missed in your sample. So, enableOptionAutoWidth was not defined. Please, try to include this file - and the issue should occur. Answer posted by Wasi on Feb 10, 2009 04:37 Thanks again, but the auto width option is enable only for the list i want dhtmlxcombo control to resize its width to the max length of a option in the list so that if a option with lengthy text is selected should be shown on the control without missing any character Answer posted by Alex (support) on Feb 10, 2009 08:10 Unfortunately, combo API doesn't allow to set input width automatically. Answer posted by wasi on Feb 10, 2009 10:14
Oh thats disaster Answer posted by Alex (support) on Feb 10, 2009 10:30 While it not possible by API you can attach custom event handler to onChange event and call the combo.setSize(some) from it to change the width of combo after option selected. Answer posted by Wasi on Feb 10, 2009 10:35 Thanks For ur Support. |