jQuery UI Widgets › Forums › General Discussions › Lists › DropDownList › Is it possible to have groups in the dropdownlist?
Tagged: angular dropdownlist, bootstrap dropdownlist, javascript dropdownlist, jQuery DropDownList, jqwidgets dropdownlist, jqxDropDownList, typescript dropdownlist
This topic contains 4 replies, has 2 voices, and was last updated by Hristo 9 years ago.
-
Author
-
I am using the jqxDropDownList to generate a list of checkboxes for each month of the year for multiple years. I would like to group the months for each year so that you can just check one year and it automatically checks all the months of that year instead of having to click each and every month. Is this possible to do?
Hello MatthewV,
I would like to suggest you this forum topic.
Also, I would like to draw your attention to the possibilities of jqxTree, please, take a look at this demo.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comThank you, the tree solution does not appear as it will work as it take up to much screen space. The other link looks like it might be what I want but I only see a way to add items to a group by manually adding each item. I am loading the list via a jqxDataAdapter, is there a way to assign the group with this method?
$("#FiscalYearSelectBox").jqxDropDownList({ checkboxes: true, displayMember: "FiscalPeriod", height: "25", selectedIndex: 1, source: new $.jqx.dataAdapter({ dataFields: [ { name: "FiscalPeriod" } ], dataType: "json", url: "GetFiscalPeriods" }), valueMember: "FiscalPeriod", width: "200" });I also just noticed the “group” demo it just groups them, I want a check box next to the group name so someone can select that to toggle the checkboxes for all child items.
Hello MatthewV,
You could use jqxTree inside a jqxDropDownButton.
Also, you could use beforeLoadComplete callback of the DataAdapter to prepare data.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.