Hi,
please bee good with me on this one, I'm sure the solution is stupid, but it is driving me crazy !
The problem is:
I have a Page with a RadWindowManager which contains a single RadWindow which contains ContentTemplate with some controls inside. In the same page I have a simple Link that triggers a javascript function that opens the window and triggers an ajaxrequest.
In the code behind of the page i get the ajaxrequest and I "should" do something on the controls inside the RadWindow.
The problem is that the RadWindow opens correctly, the ajaxrequest event gets raised correctly, but nothing happens on the controls inside the window !
Here is the code:
test.aspx
here is the code behind:
test.aspx.vb
The action to perform is stupid, but it does not happen !
If I click onto the button (and a postback starts) the Label loads !
Please help
Thank you
Lorenzo
please bee good with me on this one, I'm sure the solution is stupid, but it is driving me crazy !
The problem is:
I have a Page with a RadWindowManager which contains a single RadWindow which contains ContentTemplate with some controls inside. In the same page I have a simple Link that triggers a javascript function that opens the window and triggers an ajaxrequest.
In the code behind of the page i get the ajaxrequest and I "should" do something on the controls inside the RadWindow.
The problem is that the RadWindow opens correctly, the ajaxrequest event gets raised correctly, but nothing happens on the controls inside the window !
Here is the code:
test.aspx
<%@ Page Title="" Language="VB" MasterPageFile="~/Resources/PAI_MasterPage.master" AutoEventWireup="false" CodeFile="test.aspx.vb" Inherits="test" %>
<
asp:Content
ID
=
"Content1"
ContentPlaceHolderID
=
"ContentPlaceHolder_Body"
Runat
=
"Server"
>
<
script
language
=
"javascript"
>
function MyOpen() {
var oWM = $find("<%=MyWM.ClientID%>");
var oWin = oWM.open(null, 'W_PaiToolPackItem');
var ajaxManager = $find("<%= M.ClientID %>");
ajaxManager.ajaxRequest("IdCustomer");
}
</
script
>
<
telerik:RadAjaxManager
runat
=
"server"
ID
=
"M"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"B"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"P"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
a
href
=
"javascript:MyOpen();"
>Open</
a
>
<
telerik:RadWindowManager
runat
=
"server"
ID
=
"MyWM"
Enabled
=
"True"
>
<
Windows
>
<
telerik:RadWindow
runat
=
"server"
ID
=
"W_PaiToolPackItem"
>
<
ContentTemplate
>
<
asp:Button
runat
=
"server"
ID
=
"B"
Text
=
"Bottone"
/>
<
asp:Panel
runat
=
"server"
ID
=
"P"
>
<
asp:Label
runat
=
"server"
ID
=
"L"
></
asp:Label
>
</
asp:Panel
>
</
ContentTemplate
>
</
telerik:RadWindow
>
</
Windows
>
</
telerik:RadWindowManager
>
</
asp:Content
>
here is the code behind:
test.aspx.vb
Partial Class test
Inherits System.Web.UI.Page
Protected Sub M_AjaxRequest(ByVal sender As Object, ByVal e As Telerik.Web.UI.AjaxRequestEventArgs) Handles M.AjaxRequest
L.Text = "Ajax Load"
End Sub
End Class
The action to perform is stupid, but it does not happen !
If I click onto the button (and a postback starts) the Label loads !
Please help
Thank you
Lorenzo