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

RadWindow inside a server control insists on postback

4 Answers 136 Views
Window
This is a migrated thread and some comments may be shown as answers.
Izik
Top achievements
Rank 1
Izik asked on 26 Jul 2010, 09:42 PM
Hello,
I use a radWindow inside a web server control, but when I put the server control inside an ajaxpanel or updatepanel, it doesn't prevent the RadWindow from causing a full postback.  I even tried to put the radWindow itself inside an ajaxpanel (in the server control) but that didn't help either.

What should I do?

Thanks in advanced!

4 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 28 Jul 2010, 02:51 PM
Hello Izik,

To be able to help we need to get a better view over your exact setup and logic. Please open a support ticket and send us a sample project (please make sure it can be run locally) where the problem can be reproduced. We will check it and do our best to help.


Greetings,
Georgi Tunev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Scott
Top achievements
Rank 1
answered on 30 Dec 2010, 07:11 PM
I believe I am experiencing the exact same problem.  I am using the RadWindow as a controls container, but I do not want controls within it to cause full page postbacks, but that is what it is doing every time.  I've stripped down the code to a minimum to reproduce the problem.

Here is some sample code.  "Button1" causes the undesired behavior.  "Button2" does what I would expect.
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default3.aspx.vb" Inherits="Default3" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
 
    <div>
        <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" />
        <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1"
            LoadingPanelID="RadAjaxLoadingPanel1">
 
        <telerik:RadWindow ID="RadWindow1" runat="server"
            VisibleOnPageLoad="true">
            <ContentTemplate>
                <asp:Button ID="Button1" runat="server"
                    Text="Click me for full postback" />
            </ContentTemplate>
        </telerik:RadWindow>
 
        <asp:Button ID="Button2" runat="server"
            Text="Click me" />
 
        </telerik:RadAjaxPanel>
     
    </div>
    </form>
</body>
</html>


It may well be that I do not understand the expected behavior of the RadWindow as a controls container, but help in understanding would be appreciated!

Thanks,
Scott
0
Georgi Tunev
Telerik team
answered on 03 Jan 2011, 01:15 PM
Hello Izik,

In such scenario, you need to ajaxify the content in the template as well - by using an ajax panel, or RadAjaxManager. For example you can check this demo that shows one of the approaches that we suggest.

Kind regards,
Georgi Tunev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Scott
Top achievements
Rank 1
answered on 03 Jan 2011, 04:20 PM
Thanks for the reply.  That's the example I needed!  Thanks!
Tags
Window
Asked by
Izik
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Scott
Top achievements
Rank 1
Share this question
or