Expand in Server Side event
This post has
3
replies
dcaver
Posted:
Thu Sep 30, 2004 @ 10:34 AM
Is there a way to set the Expand propertiy of a NavBar item?
<item Text="Claims" AutoPostBackOnSelect="false" DefaultSubItemLookId="Level2ItemLook" SubGroupCssClass="Level2Group" SubGroupItemSpacing="5" Expanded="true">
Is there a way I can set this to Expanded="false" and then set another item to Expanded="true" inside of a Server-Side event?
David
milos
Posted:
Thu Sep 30, 2004 @ 10:40 AM
Yes, you can do exactly that.
Find the item you are interested in using the NavBar.FindItemById method, for instance, and then set the item's Expanded property to true or false.
dcaver
Posted:
Thu Sep 30, 2004 @ 11:15 AM
Do you happen to have an example?
dcaver
Posted:
Thu Sep 30, 2004 @ 11:19 AM
Never mind...Thanks for the help.
<item Text="Claims" ID="Claims" AutoPostBackOnSelect="false" DefaultSubItemLookId="Level2ItemLook" SubGroupCssClass="Level2Group" SubGroupItemSpacing="5" Expanded="true">
ClaimNavBar.FindItemById("Claims").Expanded = False