i need to update panels from client side RadWindow ClientClose event
depend the return value i need to update Panels
for example if return value = "1"
i need to update Panel1
if return value = "2"
i need to update Panel 2
how to achive this
depend the return value i need to update Panels
for example if return value = "1"
i need to update Panel1
if return value = "2"
i need to update Panel 2
how to achive this
3 Answers, 1 is accepted
0
Hello Johnny,
You could invoke ajaxRequest on the RadWindow ClientClose event with an specific argument and on the server in the server OnAjaxRequest event check the e.argument and update the needed control depends on it.
I hope this helps.
Regards,
Maria Ilieva
the Telerik team
You could invoke ajaxRequest on the RadWindow ClientClose event with an specific argument and on the server in the server OnAjaxRequest event check the e.argument and update the needed control depends on it.
I hope this helps.
Regards,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0

Johnny
Top achievements
Rank 2
answered on 09 Mar 2012, 09:51 AM
hi this ajaxRequestWithTarget not working if it is ContentPage
RadScriptManager is in Master Page
RadAjaxManager is in Content Page
i make ajaxRequestWithTarget Element in the RadTreeNode Client Click
the Loading panel is showing but the Button Click Event Doesn't fire
how to solve this
Javascript
RadScriptManager is in Master Page
RadAjaxManager is in Content Page
i make ajaxRequestWithTarget Element in the RadTreeNode Client Click
the Loading panel is showing but the Button Click Event Doesn't fire
how to solve this
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
DefaultLoadingPanelID
=
"RadAjaxLoadingPanel1"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"CheckoutFileViewBtn"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"PanelViewerPage"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"hiddenPanel"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"OperationBtnPanel"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
<
ClientEvents
OnRequestStart
=
"OnRequestStart"
OnResponseEnd
=
"OnResponseEnd"
/>
</
telerik:RadAjaxManager
>
<
asp:Button
ID
=
"CheckoutFileViewBtn"
style
=
"display:none;"
runat
=
"server"
Text
=
"Button"
/>
Protected Sub CheckoutFileViewBtn_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles CheckoutFileViewBtn.Click
FileDownloadBtn.Enabled = False
End Sub
function myViewsTree_OnClientNodeClicking(sender, args) {
args.set_cancel(true);
var ajaxManager = $find("ctl00_ContentPlaceHolder1_RadAjaxManager1");
ajaxManager.ajaxRequestWithTarget('ContentPlaceHolder1_CheckoutFileViewBtn', '');
}
0
Hi,
Please try to access the RadAjaxManager on the client using its GetCurrent() method as described here.
Give this a try and let me know if it makes any difference.
Regards,
Maria Ilieva
the Telerik team
Please try to access the RadAjaxManager on the client using its GetCurrent() method as described here.
Give this a try and let me know if it makes any difference.
Regards,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.