Is there any OOTB way to visualize a Value List with a checkbox associated with each element?
In the application I have several lists of phone numbers, which I'd like to present as a single list, and provide an opportunity to choose items. I'm now developing an activity, which copies elements into a Page List, which is in turn displayed in a grid, however I suffer strong subconscious feeling that this is rather bad architectural solution to create a separate class for storing only single property and exploiting pySelected from @baseclass... As far as i understood, a possible alternative is to customize HTML code of StringList control to sutisfy this condition, which will include creating a second ValueList of boolean values and somehow connecting it to the initial one.
So, I will realy appreciate any suggestions on how to implement this task in more consistent way.
Well I think using a Page-List is definitely the right approach (creating a new class or not is another story), it will be more flexible in the future. If you need more information associated with your Value-List elements it probably mean that Value-List wasn’t the right design choice in first place.
Of course, as you said, you can work on customizing the Out-Of-The-Box StringList (HTML) control to meet your requirement but I wouldn’t recommend it. The key word here is flexibility, how about if you need to add another element (another check box) in the future or just change the presentation for your users.