This is a migrated thread and some comments may be shown as answers.

Panel navigate in master page

7 Answers 159 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 09 Jun 2008, 02:12 PM
Hi,

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

Sort by
0
Jonathan
Top achievements
Rank 1
answered on 11 Jun 2008, 01:01 PM
Does anyone have the solution to this problem?

Thanks
0
Paul
Telerik team
answered on 11 Jun 2008, 01:44 PM
Hello Jonathan,

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
0
Jonathan
Top achievements
Rank 1
answered on 11 Jun 2008, 02:45 PM
Hi, No problem.

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

0
Paul
Telerik team
answered on 12 Jun 2008, 12:56 PM
Hello Jonathan,

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
0
Jonathan
Top achievements
Rank 1
answered on 16 Jun 2008, 04:15 PM
Hi Paul,

Thanks that works fine now.

Regards,
0
Jonathan
Top achievements
Rank 1
answered on 16 Jun 2008, 04:22 PM
Actually i realised that it wasnt in a master page when i tried it. I still get the same problem
0
Paul
Telerik team
answered on 18 Jun 2008, 01:08 PM
Hi Jonathan,

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
Tags
PanelBar
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Jonathan
Top achievements
Rank 1
Paul
Telerik team
Share this question
or