Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Panelbar > Dynamic NavigateURL for RadPanelItem
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered Dynamic NavigateURL for RadPanelItem

Feed from this thread
  • SoniTek avatar

    Posted on Feb 14, 2008 (permalink)

    How do I set the NavigateURL property of the RadPanelItem to have dynamic URL? Is it possible?

    ex: NavigateURL="<%=thisURL%>

    Dzung

  • Posted on Feb 15, 2008 (permalink)

    Hi,

    Check out the following forum link.
    Navigate url with in a web page.

    Thanks
    Princy.

  • SoniTek avatar

    Posted on Feb 15, 2008 (permalink)

    Hi Princy,

    The given link is not quite what I was after.

    Because the web site that will be linked to is depended on the server-side code dynamically.

  • Simon Simon admin's avatar

    Posted on Feb 18, 2008 (permalink)

    Hi Dzung Huynh,

    You could use the NavigateUrlField to specify the field of the data source that provides the NavigateUrl of the panelbar items. Please, read the following article for more information: DataBinding overview and types of data sources.

    I hope this information helps.

    All the best,
    Simon
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

  • Pavel avatar

    Posted on Jan 5, 2011 (permalink)

    I am Facing same problem for RadPanelBar.
    I am also tired for making a RadPanelItem navigation url dynamic...

    why its not working Like NavigateUrl="<%=DynamicString%>" 

    Please help Me My Code Is written Below:
    .aspx page Code
    <telerik:RadPanelBar Width="100%" runat="server" ID="RadPanelBar1" Height="380px"
        ExpandMode="FullExpandedItem">
        <Items>
     
            <telerik:RadPanelItem Text="Site User Settings" ImageUrl="~/Images/Icons/icoManageAdmin.gif">
                <Items>
                    <telerik:RadPanelItem ImageUrl="~/Images/Icons/icoCustomers.gif" Text="Make New User"
                        NavigateUrl="javascript:callPage('../Admin/InsertUpdate/InsertEditUser.aspx')"
                        PostBack="False" />
                    <telerik:RadPanelItem ImageUrl="~/Images/Icons/transaction.gif" Text="Manage Existing User"
                        NavigateUrl="javascript:callPage('../Admin/ViewData/ManageUser.aspx')" PostBack="False" />
                </Items>
            </telerik:RadPanelItem>
            <telerik:RadPanelItem Text="Personal Settings" ImageUrl="~/Images/Icons/User.png">
                <Items>
                    <telerik:RadPanelItem  ImageUrl="~/Images/Icons/icoResetPassword.gif" Text="Change Password"
                        NavigateUrl="<%=DynamicString %>" PostBack="False" />
                    <telerik:RadPanelItem ImageUrl="~/Images/Icons/transaction.gif" Text="Change Profile"
                        NavigateUrl="<%=DynamicString1 %>PostBack="False" />
                </Items>
            </telerik:RadPanelItem>
        </Items>
    </telerik:RadPanelBar>


    .cs page Code
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using Telerik.Web.UI;
     
    namespace Engg.Website.Admin
    {
        public partial class leftMenuPanel : BasePage
        {
            public string DynamicString
            {
                get {
                }
            }
    public string DynamicString1
            {
                get {
                }
            }
         
            protected void Page_Load(object sender, EventArgs e)
            {
                   
               
            }
     
            
        }
    }

    I am using licensed telerik rad control.
    Its very urgent please help...
       

  • Posted on Mar 10, 2011 (permalink)

    I never did find a solution to this, but I used an ok work around:
    The ascx file:
    <telerik:RadPanelItem  PostBack="false"  runat="server" >
        <ItemTemplate>
            <asp:LinkButton  OnClick="GetCreateCourseUrl"
               Text="Create A Course" ID="linkCreateCourse" runat="server" />
        </ItemTemplate>
    </telerik:RadPanelItem>
    the .cs file
            public void GetCreateCourseUrl(object sender, System.EventArgs e)
            {   // do whatever you want here
            Response.Redirect("../dirName1/dirName2/TargetPageName.aspx");
                           }

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Panelbar > Dynamic NavigateURL for RadPanelItem