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

RadTreeView with nodes doing NavigateUrl

3 Answers 184 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Kevin Perkins
Top achievements
Rank 1
Kevin Perkins asked on 30 Mar 2009, 06:28 PM

We are building a website that has RadTreeView with nodes that are calling aspx pages via NavigateUrl. Below is the website code and three sample aspx pages. It uses RadTreeView, RadMultiPage, RadSplitters and RadPanelBars.

 

 

 

To make it simple, I stripped out all of our software to just have aspx pages with just titles.

I have noticed 2 issues.

1. If the splitter bar is moved over the text associated with a RadTreeNode, our main pane,  rpContent, does not over-ride the text. This causes the pane to contain both its text and the text associated with the RadTreeNode.

2. When going from one aspx page to another aspx page, the website flutters and goes blank before showing the new aspx page. I have used an ajaxmanager to keep stop a aspx page from going blank when interfacing between the aspx page and an api.
Can an ajaxmanager be used for the type of master page we are using so that transitioning between pages will not causing the website to go blank?

Thanks
Kevin

 

 

website code

 

<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title>Policy Administration Support Site (PASS)</title> 
    <link rel="stylesheet" href="styles/cof.css" type="text/css" /> 
    <asp:ContentPlaceHolder ID="head" runat="server">  
    </asp:ContentPlaceHolder> 
</head> 
<body scroll="no" id="cfbody">  
 
    <script type="text/javascript" src="scripts/cof.js"></script> 
 
    <form runat="server" style="height: 100%;">  
    <telerik:RadScriptManager ID="ScriptManager" runat="server" /> 
    <telerik:RadSplitter ID="spltWrapper" runat="server" Skin="Office2007" Orientation="Horizontal" 
        Width="100%" Height="100%" VisibleDuringInit="false">  
        <telerik:RadPane runat="server" ID="pnTop" Height="31px">  
            <asp:Panel ID="pnlTop" runat="server" CssClass="pnlTop">  
            </asp:Panel> 
        </telerik:RadPane> 
        <telerik:RadPane runat="server" ID="pnBottom" Height="100%" Width="100%" Scrolling="None">  
            <telerik:RadSplitter ID="spltMain" runat="server" Skin="Outlook" Orientation="Vertical" 
                Width="100%" Height="100%">  
                <telerik:RadPane ID="Pane1" runat="server" Width="200px" Scrolling="None">  
                    <div id="pageWrapper">  
                        <telerik:RadMultiPage ID="rmpNav" runat="server" SelectedIndex="0" Width="100%" BackColor="White">  
                            <telerik:RadPageView ID="rpvPolicy" runat="server">  
                                <div class="pnlHeader">  
                                    Policy Owner Services</div> 
                                <telerik:RadTreeView ID="rtvPolicy" runat="server" Skin="Office2007">  
                                    <Nodes> 
                                        <telerik:RadTreeNode Text="Beneficiary Maintenance" Expanded="true" runat="server">  
                                            <Nodes> 
                                                <telerik:RadTreeNode Text="Maintain Benes" NavigateUrl="AddBeneficiaries.aspx" ImageUrl="Img/notes.gif" 
                                                    runat="server" /> 
                                                <telerik:RadTreeNode Text="Maintain Bene Classes" NavigateUrl="BeneClasses.aspx" 
                                                    ImageUrl="Img/notes.gif" runat="server" /> 
                                                <telerik:RadTreeNode Text="Maintain Bene Relationships" NavigateUrl="BeneRelationships.aspx" 
                                                    ImageUrl="Img/notes.gif" runat="server" /> 
                                            </Nodes> 
                                        </telerik:RadTreeNode> 
                                    </Nodes> 
                                </telerik:RadTreeView> 
                            </telerik:RadPageView> 
                        </telerik:RadMultiPage> 
                        <telerik:RadPanelBar ID="rpbNav" runat="server" ExpandMode="SingleExpandedItem" OnClientItemClicking="OnClientItemClicking" 
                            Skin="Office2007" Width="100%" CssClass="pnlBarStyle">  
                            <Items> 
                                <telerik:RadPanelItem Text="Policy Owner Services" Expanded="True" ImageUrl="Img/notes.gif">  
                                </telerik:RadPanelItem> 
                            </Items> 
                        </telerik:RadPanelBar> 
                    </div> 
                </telerik:RadPane> 
                <telerik:RadSplitBar ID="spBarMain" runat="server" CollapseMode="Forward" /> 
                <telerik:RadPane ID="rpContent" runat="server" Width="100%">  
                    <asp:Panel runat="server" ID="pnlContent">  
                        <asp:ContentPlaceHolder ID="ContentBody" runat="server" /> 
                    </asp:Panel> 
                </telerik:RadPane> 
            </telerik:RadSplitter> 
        </telerik:RadPane> 
    </telerik:RadSplitter> 
    </form> 
</body> 
</html> 
 

 aspx pages

<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="AddBeneficiaries.aspx.vb" Inherits="AddBeneficiaries" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> 
   
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">  
</asp:Content> 
<asp:Content ID="Content2" ContentPlaceHolderID="ContentBody" Runat="Server">  
    <asp:Label ID="Label1" runat="server" Text="Maint. Benes" Font-Bold="True" 
        Font-Size="Large"></asp:Label> 
    <br /> 
    <br /> 
    <br />          
</asp:Content> 
 
 
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="BeneClasses.aspx.vb" Inherits="BeneClasses" %> 
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">  
</asp:Content> 
<asp:Content ID="Content2" ContentPlaceHolderID="ContentBody" Runat="Server">  
    <asp:Label ID="Label1" runat="server" Text="Maintain Bene Classes" Font-Bold="True"   
        Font-Size="Large" ></asp:Label> 
</asp:Content> 
 
 
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="BeneRelationships.aspx.vb" Inherits="BeneRelationships" %> 
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">  
</asp:Content> 
<asp:Content ID="Content2" ContentPlaceHolderID="ContentBody" Runat="Server">  
    <asp:Label ID="Label1" runat="server" Text="Maintain Bene Relationships" Font-Bold="True" 
        Font-Size="Large"></asp:Label> 
</asp:Content> 
 
 

aspx.vb

 
Imports System.Data  
Imports System.Data.SqlClient  
Imports Telerik.Web.UI  
Partial Class AddBeneficiaries  
    Inherits System.Web.UI.Page  
 
    Protected Shadows Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load  
    End Sub  
   
 
End Class  
 
 
Imports System.Data  
Imports Telerik.Web.UI  
Partial Class BeneClasses  
    Inherits System.Web.UI.Page  
 
    Protected Shadows Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load  
    End Sub  
 
End Class  
 
 
Imports System.Data  
Imports Telerik.Web.UI  
Partial Class BeneRelationships  
    Inherits System.Web.UI.Page  
 
    Protected Shadows Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load  
    End Sub  
 
End Class  
 

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 02 Apr 2009, 12:47 PM
Hello Kevin,

I guess that the first issue is solved in the support ticket, right?

I am not able to reproduce the second issue with the page transitions. Could you please send us a live url where we can observe it? Thank you

All the best,
Yana
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Kevin Perkins
Top achievements
Rank 1
answered on 02 Apr 2009, 01:29 PM
Yana

Yes the first item was fixed by Support ID:201877 -- RadSplitter not overriding RadPanelBar text or text contain in RadPanelItem. The second item I reply to RE: Support ID:201893 -- RadTreeView performance when navigating to URL. Basically what I am having problems with is being able to generate a loading panel whenever we go to an aspx page.

Because of the RadSplitter, RadPanes, RadMultiPage, RadTreeView, RadSplitBar, and others, I am having a difficult time setting up the proper AjaxSetting of a RadAjaxManager for showing a loading panel.

Since our urls are internal, there is no live url possible. But the problem is setting up the RadAjaxManager.

Thanks
Kevin
0
Yana
Telerik team
answered on 06 Apr 2009, 11:28 AM
Hello Kevin,

It seems that issue is fixed in the other support ticket. Is this the case?

Kind regards,
Yana
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Kevin Perkins
Top achievements
Rank 1
Answers by
Yana
Telerik team
Kevin Perkins
Top achievements
Rank 1
Share this question
or