Print Page | Close Window

Toolbox: Prevent Multiple Selection

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1828
Printed Date: 17 November 2024 at 9:25pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Toolbox: Prevent Multiple Selection
Posted By: Boyd
Subject: Toolbox: Prevent Multiple Selection
Date 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!




Replies:
Posted By: Oleg
Date 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


Posted By: Boyd
Date 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.   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?



Posted By: SuperMario
Date 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.


Posted By: ianp
Date 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



Posted By: SuperMario
Date 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)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net