I'm testing the radpanel control but having problems with the NavigateUrl property. I'm using the control in a master page and setting the navigateurl dynamically in code. However, when I click on a panel item the page does not navigate, it appears to just post back and nothing more.
If i place the control in the content area of the default.aspx page, it navigates OK.
Can you advise on what I could try to help solve this?
Thanks,
7 Answers, 1 is accepted

Thanks
Unfortunately, the provided info is not enough for us to find or solve the problem you are facing. Could you please paste your ASPX and code-behind in this forum post so that we can reproduce and pinpoint the problem on our side, understand the logic of your application and provide a solution.
Sorry for the additional mail loop required, but without further info we cannot be of much assistance.
Regards,
Paul
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center

The ASPX code in my master page is:
<telerik:RadPanelBar ID="navigatePanelBar" runat="server" Skin="Vista"
onitemclick="navigatePanelBar_ItemClick">
<CollapseAnimation Type="None" Duration="100">
</CollapseAnimation>
<Items>
<telerik:RadPanelItem runat="server" Text="Home" Value="0"></telerik:RadPanelItem>
<telerik:RadPanelItem runat="server" ChildGroupHeight="100px" Text="Sub Business Units" Value="1"></telerik:RadPanelItem>
<telerik:RadPanelItem runat="server" ChildGroupHeight="100px" Text="Sites" Value="2"></telerik:RadPanelItem>
<telerik:RadPanelItem runat="server" ChildGroupHeight="100px" Text="Units" Value="3"></telerik:RadPanelItem>
<telerik:RadPanelItem runat="server" ChildGroupHeight="100px" Text="Reports" Value="4"></telerik:RadPanelItem>
<telerik:RadPanelItem runat="server" ChildGroupHeight="100px" Text="Views" Value="5"></telerik:RadPanelItem>
<telerik:RadPanelItem runat="server" ChildGroupHeight="100px" Text="Users" Value="6"></telerik:RadPanelItem>
<telerik:RadPanelItem runat="server" ChildGroupHeight="100px" Text="Contacts" Value="7"></telerik:RadPanelItem>
<telerik:RadPanelItem runat="server" ChildGroupHeight="100px" Text="UOMS" Value="8"></telerik:RadPanelItem>
<telerik:RadPanelItem runat="server" ChildGroupHeight="100px" Text="Dashboards" Value="9"></telerik:RadPanelItem>
<telerik:RadPanelItem runat="server" ChildGroupHeight="100px" Text="Downloads" Value="10"></telerik:RadPanelItem>
</Items>
<ExpandAnimation Type="InCubic" Duration="100"></ExpandAnimation>
</telerik:RadPanelBar>
The code behind to populate the NavigateUrl property is:
List
<SubBusinessUnit> entities = Navigation.SubBusinessUnits.GetSubBusinessUnits(buidSelected);
if (entities.Count > 0)
{
navigatePanelBar.Items[1].Visible =
true;
RadPanelItem item = navigatePanelBar.Items[1];
item.Items.Clear();
for (int y = 0; y < entities.Count; y++)
{
RadPanelItem subItem = new RadPanelItem();
subItem.Text = entities[y].BusinessUnitName;
subItem.Value = entities[y].BusinessUnitID.ToString();
subItem.NavigateUrl =
"hello.aspx";
item.Items.Add(subItem);
}
item.Expanded =
true;
}
hello.aspx is just a test....
When I click on an entity the page appears to post back but i do not get navigated to hello.aspx, however if i take the panel control out of the master page and put it into a normal default.aspx page it works
Please find attached the latest internal build that addresses the issue. Give it a try and let us know how it goes.
Regards,
Paul
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center

Thanks that works fine now.
Regards,

We tried to reproduce the reported issue on our side, but to no avail. I think it will be best if you can open a formal support ticket and send us a simple running project (incl. CSS, images, skins, DB backup if needed and so on) demonstrating the problem (and step-by-step instructions on doing so). In that way we can reproduce and pinpoint the problems you're facing on our side, understand the logic of your application and provide a solution.
Thanks beforehand for your patience and cooperation,
Paul
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center