jQuery UI Widgets › Forums › Lists › DropDownList › Can't I set a value for items in jqxTree of jqwidgets?
This topic contains 3 replies, has 2 voices, and was last updated by svetoslav_borislavov 7 months, 1 week ago.
Hello, I have a question.
You’ve got a great answer to the previous question, “https://www.jqwidgets.com/community/topic/can-we-make-a-multidrop-tree-checkbox/ “. But we’re having another difficulty.
http://jsfiddle.net/nsdh4cb0/22/ If you look at the sample page I temporarily created, I implemented the dropdown list, check box, and tree structure. But I’m trying to set a value here, but I can’t. Is there any way?
The “http://jsfiddle.net/1uzdcbL0/9/ ” id, label, and selected settings work well, but the value settings do not work. crying
I have modified your demo and I was able to retrieve the values when checking an item.
Please see the console and my code for getting the values variable.
I am just using the getAttribute method on every selected li element
I hope this helps!
Your answer has been of great help. However, new problems arose during development. You need to check the It’s none other than checkbox and fire the event only once.
If you check the log on
This happens several times.
Is it possible to make the above log appear only once in the jqxtree event?
I’m really desperate. please.
To overcome this, you may remove the hasTreeStates property:
Please visit this: http://jsfiddle.net/jqodx36t/
You must be logged in to reply to this topic.