Finding Multiple Controls in CommandBars |
Post Reply |
Author | |
stefanadelbert
Groupie Joined: 29 October 2008 Location: Australia Status: Offline Points: 31 |
Post Options
Thanks(0)
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 |
|
stefanadelbert
Groupie Joined: 29 October 2008 Location: Australia Status: Offline Points: 31 |
Post Options
Thanks(0)
|
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Yes you need Actions or Update handler to disable/enable controls - see any our sample
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |