Dynamically set the check based on the status of a record

good morning
I'm using a CheckListBox control.
The control is populated via c # in code behind on a regular basis by reading a table in access.
The name of the camps is published regularly.
In the record I have the field "Status" set to active or extinct.
I would need to edit in the CheckedListBox, through code c # in code behind, setting the check in case the record is set as active or to deactivate the check in case of records Extinct.
I can not find a way to set the "Checked" flag according to the status of the record.
Do you have an example?
Thank you

Moreno

Attachment: 20180228_CheckedListBox_17d45cac.zip

3 Replies

VR Vijayalakshmi Roopkumar Syncfusion Team March 1, 2018 06:29 PM UTC

Hi Misonsan

Thank you for contacting Syncfusion Support.

We observed that your requirement is to select the CheckListBoxItems based on the status of the items. For this , you can use the IsSelected property of CheckListBoxItems. In this sample, we have binded the IsSelected property and change the selected item based on the status using Button Click.

Please download the sample for the same from following location:

Sample: http://www.syncfusion.com/downloads/support/forum/136160/ze/CheckedListBox_Sample-1420164874.zip 

Please try this solution and let us know if it meets your requirement.

Regards
Vijayalakshmi V.R. 
  



MI misonsan March 2, 2018 05:18 PM UTC

thanks Vijayalakshmi Roopkumar  for the precious collaboration.
It works regularly.
Hello
Moreno


VR Vijayalakshmi Roopkumar Syncfusion Team March 5, 2018 06:15 AM UTC

Hi Misonsan,

We are glad that your requirement has been met.

Please get back to us if you need any other assistance.

Regards
Vijayalakshmi V.R.

Loader.
Up arrow icon