Print Page | Close Window

Finding Multiple Controls in CommandBars

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=14885
Printed Date: 16 June 2025 at 11:45am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Finding Multiple Controls in CommandBars
Posted By: stefanadelbert
Subject: Finding Multiple Controls in CommandBars
Date Posted: 03 August 2009 at 3:01am
I have more than one control with a particular ID in the CommandBars object, e.g. one in the menu and one on the toolbar. If I would like to find one of those controls I can use FindControl with recursive set to True and this works fine.

But if I want to find all controls with a given ID, to disable them for example, what is the recommended approach?

Thanks
Stefan



Replies:
Posted By: stefanadelbert
Date Posted: 03 August 2009 at 3:25am
It seems that the answer it to use CommandBarActions. I am looking this now and will post a solution if I find a decent one.

Stefan


Posted By: Oleg
Date Posted: 06 August 2009 at 12:43am
Hi,
Yes you need Actions or Update handler to disable/enable controls - see any our sample


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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