peyman naji
Top achievements
Rank 1
peyman naji
asked on 08 Dec 2009, 11:30 AM
Hi friends ,
I Have one page (Index.aspx) , and put one ajaxmanager in this page … I use ajaxmanager for handle 2 clientside event 1- OnrequestStart 2- OnResponseEnd .
Also I have one UserControl in Index.aspx … in this UC I have 2 Button and when I click one of them , I want to fire OnRequestStart and get element (get_eventTargetElement) that make ajax request in UC …
How can I do it ?!
Plz help me
Thank u very much .
Regards,
peyman
4 Answers, 1 is accepted
0
Princy
Top achievements
Rank 2
answered on 08 Dec 2009, 01:46 PM
Hello Peyman,
You can handle the master manager events in the user control by attaching event handlers to the manager as follows:
ascx:
ascx.cs(WebUserControl codebehind):
Index.aspx:
Thanks
Princy.
You can handle the master manager events in the user control by attaching event handlers to the manager as follows:
ascx:
<telerik:RadAjaxManagerProxy ID="RadAjaxManager1" runat="server" > |
<AjaxSettings> |
<telerik:AjaxSetting AjaxControlID="Button1"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ... /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
</AjaxSettings> |
</telerik:RadAjaxManagerProxy> |
ascx.cs(WebUserControl codebehind):
protected void Page_Load(object sender, EventArgs e) |
{ |
RadAjaxManager manager = RadAjaxManager.GetCurrent(Page); |
manager.ClientEvents.OnRequestStart = "onRequestStart"; |
} |
Index.aspx:
function onRequestStart(sender, eventArgs) |
{ |
var button = eventArgs.get_eventTargetElement(); |
} |
Thanks
Princy.
0
peyman naji
Top achievements
Rank 1
answered on 08 Dec 2009, 04:07 PM
Hi Princy ,
Thank u so much , Thats very helpful ,
Regards,
peyman
Thank u so much , Thats very helpful ,
Regards,
peyman
0
Princy
Top achievements
Rank 2
answered on 09 Dec 2009, 06:43 AM
Hi Peyman,
I'm glad i could help you out. You could also go through the following help document for better understanding:
AJAX Manager Proxy
Regards
Princy.
I'm glad i could help you out. You could also go through the following help document for better understanding:
AJAX Manager Proxy
Regards
Princy.
0
peyman naji
Top achievements
Rank 1
answered on 11 Dec 2009, 06:32 PM