Toolbox: Prevent Multiple Selection |
Post Reply |
Author | |
Boyd
Senior Member Joined: 08 December 2003 Location: United States Status: Offline Points: 285 |
Post Options
Thanks(0)
Posted: 21 February 2005 at 12:45pm |
I have a TaskPanel being used as a Toolbox with the 'WhidbeyToolbox' style and 'Explorer' behavior. This allows me to display multiple groups at one. The problem is that I only want one item to be selected at a time. Currently, the only limit is that one item is selected per group. Is there an easy way to prevent this from happening? At the moment, my only thought would be to enumerate each item in the toolbox and set the Selected property to false. Seems like an ugly work-around. Thanks for any feedback! |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
You can store previour selection in some variable and unselect it after new item clicked. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Boyd
Senior Member Joined: 08 December 2003 Location: United States Status: Offline Points: 285 |
Post Options
Thanks(0)
|
This only solves half the problem. If the user uses the keyboard to change their selection, there is no event for this. If there's no way for me to know the selection changed, I can't de-select the old item. Can you please add 'ItemSelected' event to allows us to respond to changes made by the keyboard? |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
In the next release, a new property called TaskPanel.SingleSelection
will allow you to specify if only a single item can be selected in the
Task Panel.
|
|
ianp
Moderator Group Joined: 19 December 2003 Location: United Kingdom Status: Offline Points: 119 |
Post Options
Thanks(0)
|
will it be possible to select more than one item in any given group? or is this possible already and I've missed it??? Thanks |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
It is already possible, Take a look at the ToolBox sample and select "Toggle Buttons"
(Select item on Focus must be un-checked) Edited by SuperMario |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |