jQWidgets Forums
jQuery UI Widgets › Forums › Lists › DropDownList › Dropdownlist selectionrenderer checkbox selection
This topic contains 7 replies, has 3 voices, and was last updated by Hristo 4 years, 11 months ago.
-
Author
-
Hi i have this example created with jqxdropdownlist with checkboxes, where i have a selectionrenderer function created and within that i am trying to use the ‘setContent’ method to apply my selections. The issue i am facing is whenever i select any of the items besides select all, its only retrieving the very first selected item.
For example:
Select options
Joe-doe-37
Jake-doe-37Now using that ‘setContent’ method i want the dropdown content to show the selections
Joe-doe-37, Jake-doe-37, …Currently its just showing only my first item that i select which is Joe-doe-37. So i will really appreciate a workaround.
Here is my jsfiddle:
https://jseditor.io/?key=dropdownlist-checkboxes-ver-2Hello dan123,
I tested the mentioned example and it seems to work as you want.
Each of the selected items is set in the jqxDropDownList.Best Regards,
Hristo HristovjQWidgets team
https://www.jqwidgets.comHi Hristo,
Its only showing the first item selection still. even though i selected multiple
Joe-doe-37, Joe-doe-37, Joe-doe-37,It should show
Joe-doe-37, Jake-doe-37, Breve-doe-37, …So i am not sure which part i am doing wrong. so will appreciate your help
Hello dan123,
I am sorry you have two similar values and for that reason, I assumed it is fine.
The issue becomes incorrect implementation.
It will be better to use a jqxDataAdapter and to get its records when you iterate to create your “table”.
You could try on that way, too:
table += this.originalItem.firstname + " - " + this.originalItem.lastname + " - " + this.originalItem.age + ", ";
Maybe you should handle the case when all items are selected.Best Regards,
Hristo HristovjQWidgets team
https://www.jqwidgets.comHi Hristo,
So i tried with the dataAdapter and did for loop through the selected checkboxes but it still showing as
Joe-doe-37, Joe-doe-37, Joe-doe-37,It should show
Joe-doe-37, Jake-doe-37, Breve-doe-37, …Not sure which part is incorrect and appreciate your help
Here is my jsfiddle:
https://jseditor.io/?key=dropdownlist-checkboxes-5Hello dan123,
Please, take a look at this example.
I hope this will help.Best Regards,
Hristo HristovjQWidgets team
https://www.jqwidgets.comi have created a jqxgrid with 3 columns among that one column is rendered as dropdownlist. here if a want to open the dropdownlist i need to double click. is it possible to open the dropdownlist in single click.
i’m stuck with this for a long time. thanks in advance
Hello sivakumar,
We have other discussions with the same question.
You could use the single click editing –editmode: "click"
property.
After that, when thecreateeditor
callback is fired then use theopen
method of the jqxDropDownList.
I hope this will help – if you have trouble with this then please, provide us with an example that you use.Best Regards,
Hristo HristovjQWidgets team
https://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.