Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
39 views
This is a test project I'm working on, here is the .master page

<%@ Master Language="VB" CodeFile="TelMenu.master.vb" Inherits="ZForges_TelMenu" %>

<!DOCTYPE html>

<html>
<head runat="server">
    <title></title>

    <meta name="viewport" content="width=device-width, initial-scale=1 shrink-to-fit=no">

    
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript"> 

       
            function OnClientItemClicking(sender, args)
            {                
                if (args.get_item().get_navigateUrl() === null)
                {
                    args.get_item().open();
                    args.set_cancel(true);
                }
            }
          
        </script>
    </telerik:RadCodeBlock>

</head>
<body >
    <form id="form1" runat="server">       
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
        <div class="container-fluid">
            <div class="row BannerRow">
                <div class="col-10 col-sm-6 text-left h3">
                    Title here
                </div>                
            </div>
     
            <div class="row">
                <div class="col-12">
                    <%--<telerik:RadMenu ID="rdMenu" runat="server" ShowToggleHandle="true" OnClientItemClicking="OnClientItemClicking" ExpandAnimation-Type="None" CollapseAnimation-Type="None"></telerik:RadMenu>--%>
                    <telerik:RadNavigation ID="rdNav" runat="server" MenuButtonPosition="Left"></telerik:RadNavigation>
                </div>
            </div>

            <div class="row">
                <div class="col-12">
                    <asp:ContentPlaceHolder id="cpMain" runat="server">
                    </asp:ContentPlaceHolder>
                </div>
            </div>
        </div>

     
    </form>   
</body>
</html>

the code behind of the .master page below

Imports System.Data
Imports Telerik.Web.Device.Detection
Imports Telerik.Web.UI

Partial Class ZForges_TelMenu
    Inherits System.Web.UI.MasterPage

    Private Sub ZForges_TelMenu_Load(sender As Object, e As EventArgs) Handles Me.Load
        Try

            If Not IsPostBack Then

                LoadMenu(Session("UserID"))

             
            End If

        Catch ex As Exception
           
        End Try
    End Sub

    Private Sub LoadMenu(iUserID As Integer)
        Try
            Dim objUser As New TestClass

            'rdMenu.DataSource = objUser.GetUserMenu(iUserID)
            'rdMenu.DataTextField = "MenuName"
            'rdMenu.DataNavigateUrlField = "URL"
            'rdMenu.DataFieldID = "MenuID"
            'rdMenu.DataValueField = "MenuID"   
            'rdMenu.DataFieldParentID = "ParentID"
            'rdMenu.DataBind()


            rdNav.DataSource = objUser.GetUserMenu(iUserID)
            rdNav.DataTextField = "MenuName"
            rdNav.DataNavigateUrlField = "URL"
            rdNav.DataFieldID = "MenuID"
            rdNav.DataFieldParentID = "ParentID"
            rdNav.DataBind()

            objUser = Nothing

        Catch ex As Exception
         
        End Try
    End Sub



End Class


a simple .aspx page with a radbutton on it

<%@ Page Title="" Language="VB" MasterPageFile="~/ZForges/TelMenu.master" AutoEventWireup="false" CodeFile="Welcome.aspx.vb" Inherits="ZForges_Welcome" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cpMain" Runat="Server">      
    Welcome Page    
    <telerik:RadButton ID="btnSearch" runat="server" Text="RadButton"></telerik:RadButton>

</asp:Content>


the radnavigation loads just fine for the first time, then its contents disappear after a postback
when I click the radbutton on the child page (welcome.aspx) the rad navigation contents disappear, if I use a radmenu instead, its able to hold the values

can someone explain whats going on?
Attila Antal
Telerik team
 answered on 22 Oct 2024
1 answer
100 views

hi,

Does the RadNavigation  have  ExpandDirection  ? the Navigation  in bottom at the page  

And how to change RadNavigation  ExpandDirection  = up

Thanks

Rumen
Telerik team
 answered on 21 Nov 2022
1 answer
193 views

When you create a Telerik Web Application using teh Outlook-Inspired template, how do you automatically expand the side menu? You have to click at the top left corner to expand.

I want to show up like the below, without having to click on the red in order for the left side to show when I first initialize the app.

Erika
Top achievements
Rank 1
Iron
 answered on 28 Sep 2022
1 answer
103 views
Why would you include a FindNodeByText function, but not include a FindNodeByID function?  You allow an ID to be assigned to a NavigationNode...logic dictates you should be able to find it by the ID.
Peter Milchev
Telerik team
 answered on 25 Apr 2022
1 answer
315 views

I am dealing with a scenario where in grid , whether user clicks on a row or uses up/down arrow in the grid to select a row, it should do a postback and update other fields on the page. During research I have found that EnablePostBackOnRowClick and AllowKeyboard Navigation cannot work at the same time. This is what I have :

<Selecting AllowRowSelect="true" />

 <ClientEvents OnRowSelected="GridRowSelected" OnRowMouseOver="RowMouseOver" />

 

  function GridRowSelected(sender, args) {

// do a post back to update other controls on the  page

}

 

Can someone please help me in achieving this? I have tried different methods explained in forum but nothing worked for me. In short, I want it to do a post back  when either user clicks on a row or make a selection using keyboard navigation and call this:

  void RadGrid1_SelectedIndexChanged(object sender, EventArgs e)

{

}

 

Doncho
Telerik team
 answered on 20 Dec 2021
1 answer
136 views

I want to have nodes in multi columns.

It seems to me that there is no such settings.  So I use the Content Template.  However, I found that the content template width cannot be set.

How can I set the content template width in code behind? and in aspx?

BTW, it is great if the nodes can be set in multi columns.  It will be nice if it is included in next release.

Thanks.

Alfred

Attila Antal
Telerik team
 answered on 09 Sep 2021
1 answer
154 views
     Hi;

I had added the radnavigation to a masterpage. Everything works well if there is no ajax postback in pages.. When you make a ajax postback with ajaxmanagerproxy in a page, the navigation locks and can't use.. Only nodes without subitems can be clickable...
Rumen
Telerik team
 answered on 30 Dec 2019
5 answers
198 views

Hi,

in my webapplication I use a RadMenu that contains some RadMenuItems.

The code is the following:

<asp:Content ID="Content2" ContentPlaceHolderID="FolderContent" runat="Server">
    
     <telerik:RadMenu RenderMode="Lightweight" ID="RadMenu1" Flow="Vertical" CssClass="mainMenu" runat="server" ShowToggleHandle="true">
            <Items>
                <telerik:RadMenuItem Text="Leistungen" NavigateUrl="Views/Office/ServiceListView.aspx" />
                <telerik:RadMenuItem Text="Warengruppen" NavigateUrl="" />
                <telerik:RadMenuItem Text="Artikel" NavigateUrl="Views/Office/ArticleListView.aspx"></telerik:RadMenuItem>

 

When I click on MenuItem "Leistungen" the page ServiceListView.aspx in the folder Views/Office/ should be load in the MainContent and in the browser.

But it doesn't work.

I get the following error message:

System.Web.HttpException: "Vorangestellte .. können nicht zum Beenden auf oberster Verzeichnisebene verwendet werden."

How can I adjust the path without errors?

 

Vessy
Telerik team
 answered on 07 May 2019
1 answer
148 views
How can I have all the navigation nodes be centered inside of a RadNavigation control that occupies 100% of the screen?  Right now all items are left aligned with a lot of extra gray space to the right.
Rumen
Telerik team
 answered on 31 Oct 2018
2 answers
52 views
RadNavigation and RadTabStrip work fine in Visual Studio when test using IE11. After publishing and implementing on Web Server, IE only shows links for the navigation and the tabs will not work. Chrome works fine. Testing on the web server with IE11 also works fine. Have to use IE11, can't use Edge either.
Kenneth
Top achievements
Rank 1
 answered on 08 Oct 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?