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

ajaxmanger proxy and content page

2 Answers 57 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 1
Andy asked on 14 Jan 2009, 03:05 AM
I have tree view acting as navigation  - its in the master page. In content pages, I need this tree view to affect changes. However, the proxy on the content page seems unable to let me configure this. It doesn't contain any design time support for the controls on my master page (Eg; the tree view)

How do I get the tree view in master page, to, say, load a new form in content page based on which tree node was clicked??

The only way I can think of is to abandon the content/master paradigm and have all forms and controls (probably as user controls) loaded dynamically from within the one ajaxified page.

Thanks in advance...

Andles

2 Answers, 1 is accepted

Sort by
0
Accepted
Iana Tsolova
Telerik team
answered on 14 Jan 2009, 12:18 PM
Hello Andy,

I suggest that you setup your ajax settings in the MasterPage. For instance you can add setting in the RadAjaxManager in the Master page where the TreeView updates the particular ContentPlaceHolder:

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %> 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
<!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>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
        <div> 
            <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
                <AjaxSettings> 
                    <telerik:AjaxSetting AjaxControlID="RadTreeView1">  
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="ContentPlaceHolder1" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                </AjaxSettings> 
            </telerik:RadAjaxManager> 
            <telerik:RadTreeView ID="RadTreeView1" runat="server">  
            </telerik:RadTreeView> 
            <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">  
            </asp:ContentPlaceHolder> 
        </div> 
    </form> 
</body> 
</html> 

Find more about RadAjax and Master pages in the below online resources:

http://www.telerik.com/help/aspnet-ajax/ajxajaxmasterpage.html
http://www.telerik.com/help/aspnet-ajax/ajxmasterpageupdateeverywhere.html
http://www.telerik.com/help/aspnet-ajax/ajxloadcontrolfromanotherwebusercontrolindifferentmasterpagecontentplaceholder.html

I hope this helps.

All the best,
Iana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Andy
Top achievements
Rank 1
answered on 15 Jan 2009, 01:57 AM
Great - thanks!
Tags
Ajax
Asked by
Andy
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Andy
Top achievements
Rank 1
Share this question
or