Chandusangale / dropdown-check-list

Automatically exported from code.google.com/p/dropdown-check-list
1 stars 0 forks source link

Dynamically adding items and selecting based on criteria #99

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I have 10 item binded to list and with firstItemChecksAll: true property.
2. In code behind, I am filtering the items based on condition(Lets say 
only 2 items)
3. I want to unselect all and select a specific item( Say 2nd items) in 
code behind.

What is the expected output? What do you see instead?

Expected is all should not be selected and other items should not be 
selected. Only the second items should be selected.

What version of the product are you using? On what operating system?
I am using Windows XP. 
Not sure about version but the license terms contain
 * ui.dropdownchecklist
    *
    * Copyright (c) 2008-2009 Adrian Tosca
    * Dual licensed under the MIT (MIT-LICENSE.txt)
    * and GPL (GPL-LICENSE.txt) licenses.

Please provide any additional information below.

Please help me to achieve this as it is very critical in my project.

Original issue reported on code.google.com by suryasin...@gmail.com on 27 May 2010 at 6:21

GoogleCodeExporter commented 9 years ago
Multiple issues have been posted for a way to affect the DDCL state via code. I 
believe two functions are needed: one to adjust the checked state of arbitrary 
items, and one to change the structure/layout/values within the control 
(without a total destroy and rebuild)

I will be looking into this as part of version 1.1

Original comment by womohun...@ittrium.com on 15 Sep 2010 at 1:57

GoogleCodeExporter commented 9 years ago
Pending version 1.1 addresses part of this issue.
Via your javascript code, you can alter the 'selected' and 'disabled' state of 
all the original select options and option groups. Once you are done, you use 
the new "refresh" function to cause the DDCL component to refresh itself from 
the selector settings. 

I have decided NOT to create a 'rebuild' function - upon further research, such 
a function would have to do nearly 100% of what destroy/create already does.  
Therefore, use destroy.  

Original comment by womohun...@ittrium.com on 22 Sep 2010 at 6:01

GoogleCodeExporter commented 9 years ago
Issue addressed with version 1.1.  Please let me know if you have any problems.

Original comment by womohun...@ittrium.com on 23 Sep 2010 at 3:33