Hi All,
I am developing an app on top of Telerik RadControls for WinForms Q3 2010.
In one of the views an end user would be required to select one or more options from a list. I have used RadListControl for presenting the set of possible options and picking the selected ones. Yet I wish to leverage the user experience by providing a check box next to each selection option and allowing user to select/unselect options by toggling on/off corresponding check boxes as, for example, the Microsoft's ListView control does.
I have looked at your nice demos and extended RadListVisualItem as shown to have a check box, to follow the state of its Selected property and to set the Data.Selected property upon catching the state changed event from that check box.
The code makes quite enough sense, yet in runtime when a check box is set, for example, the state changed event is fired twice:
I am developing an app on top of Telerik RadControls for WinForms Q3 2010.
In one of the views an end user would be required to select one or more options from a list. I have used RadListControl for presenting the set of possible options and picking the selected ones. Yet I wish to leverage the user experience by providing a check box next to each selection option and allowing user to select/unselect options by toggling on/off corresponding check boxes as, for example, the Microsoft's ListView control does.
I have looked at your nice demos and extended RadListVisualItem as shown to have a check box, to follow the state of its Selected property and to set the Data.Selected property upon catching the state changed event from that check box.
The code makes quite enough sense, yet in runtime when a check box is set, for example, the state changed event is fired twice:
- first time with the correct information that the check box has been toggled on;
- second time with the information that the check box has been toggled off (sic!).
Can anyone please tell why the second event is fired off?
A working example of how to implement the desired functionality will be also greatly appreciated.
Thank you in advance for your assistance.
-- Best regards