In need of help selecting the first child item when clicking a parent item if child items exists. For example, we have products series names as parent items in RadPanelBar and the first child is a Series Features page. We'd like to automatically select the series features child object when a user clicks the top level product name triggering it's appropriate "selected" css, etc.
Example .ASPX:
Example Code Behind:
There are no url's in the example for panelbar items, nor any items without child objects, but that shouldn't matter correct?
Thanks for the help.
Example .ASPX:
<telerik:RadPanelBar ID="testPanel" CollapseAnimation-Duration="100" |
CollapseAnimation-Type="Linear" ExpandAnimation-Duration="50" |
ExpandAnimation-Type="Linear" PersistStateInCookie="true" |
ExpandMode="SingleExpandedItem" CausesValidation="False" runat="server" |
Skin="WebBlue" AllowCollapseAllItems="true"></telerik:RadPanelBar> |
Example Code Behind:
protected void Page_Load(object sender, EventArgs e) |
{ |
if (!Page.IsPostBack) |
{ |
RadPanelItem productOne = new RadPanelItem(); |
productOne.Text = "Product One"; |
productOne.CssClass = "MainItem"; |
testPanel.Items.Add(productOne); |
RadPanelItem featuresOne = new RadPanelItem(); |
featuresOne.Text = "Series Features"; |
productOne.Items.Add(featuresOne); |
RadPanelItem productTwo = new RadPanelItem(); |
productTwo.Text = "Product Two"; |
productTwo.CssClass = "MainItem"; |
testPanel.Items.Add(productTwo); |
RadPanelItem featuresTwo = new RadPanelItem(); |
featuresTwo.Text = "Series Features"; |
productTwo.Items.Add(featuresTwo); |
} |
} |
There are no url's in the example for panelbar items, nor any items without child objects, but that shouldn't matter correct?
Thanks for the help.