![]() |
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)
Quote Reply
Topic: Toolbox: Prevent Multiple SelectionPosted: 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
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 February 2005 at 2:30am |
|
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)
Quote Reply
Posted: 22 February 2005 at 12:34pm |
|
This only solves half the problem. If the user uses the keyboard to change their selection, there is no event for this. Can you please add 'ItemSelected' event to allows us to respond to changes made by the keyboard? |
|
![]() |
|
SuperMario
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 February 2005 at 10:32am |
|
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)
Quote Reply
Posted: 23 February 2005 at 11:18am |
|
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
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 February 2005 at 11:19am |
|
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 |