jQWidgets Forums
jQuery UI Widgets › Forums › Lists › DropDownList › Displayed selection value when checkboxes are enabled can be misleading
Tagged: dropdown, DropDownList
This topic contains 3 replies, has 3 voices, and was last updated by Peter Stoev 12 years, 7 months ago.
-
Author
-
September 12, 2012 at 4:39 am Displayed selection value when checkboxes are enabled can be misleading #7733
The DropDownList selection box always presents the last ‘selected’ item. In the context of checkboxes, this results in misleading results, as this leads to unchecking a checkbox resulting in the label for the unchecked item being displayed. For instance, in the DropDownList checkbox demo check Anna and Hanna and then uncheck Anna and close the list. The selection box will contain ‘Anna’ although the only checked entry in the list is Hanna.
In this case, something like a comma-joined list of the checked items would seem like a more reasonable default. It would also be nice to have a custom selection renderer called on checkChange in which the current checked/unchecked item would be available (along with being able to get the list of all checked items from the API). I attempted to implement something along the lines of the comma-separated list, but selectionRenderer is not called if the same item is checked and unchecked in succession (since the selected item doesn’t change).
On a related note, it would be nice to be able to define the value displayed in the selection box when no item is selected (or checked). I believe it is currently blank in this case and it would be useful to be able to display a prompt message. With checkboxes enabled, using the first item in the list for the prompt value results in having a checkbox next to the prompt which is undesirable.
Also, the ‘checkChange’ event is used in the demo but is not documented on the API page.
Marc
September 12, 2012 at 5:26 am Displayed selection value when checkboxes are enabled can be misleading #7736Hi Marc,
Thank you for your post. We’ll consider enhancing the DropDownList’s behavior in the future versions.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comSeptember 27, 2012 at 1:16 pm Displayed selection value when checkboxes are enabled can be misleading #8601+1 for this suggestion – a comma separated list would be most helpful
September 28, 2012 at 4:43 am Displayed selection value when checkboxes are enabled can be misleading #8625Hi slodge,
We do not have plans to add a comma separated list for jqxDropDownList. It does not have enough space to display a whole list. Such feature will be better to be available in a widget like jqxComboBox.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.