Rank: Newbie Groups: Member
Joined: 11/4/2009 Posts: 2
|
I'm trying to create a toolbar on the fly (i.e., not through declarations in .aspx file). I create some ToolBarItems, then add them to a ToolBarItemCollection.
But how do I add the ToolBarItemCollection to the ToolBar itself? The Items property is read-only, and I can't find anything that suggests how to do that. Surely this must be a common scenario, so how do I handle this?
Thanks.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
You do not. You do it something like this:
Code: C#
ToolBar1.Items.Add(your_new_toolbar_item);
Thanks
|
Rank: Newbie Groups: Member
Joined: 11/4/2009 Posts: 2
|
Right. Of course. Thanks!
|