Hi,
I need to identify, when calling NeedDataSource() on my RADGrid, whether the action to invoke this is the RADMenu click (server-side click event handler for this control calls NeedDataSource()) or Page_Load, which calls likewise.
My RADGrid is in a RADAjaxManager:
Thus, will the below work?
So if this is null, RadMenu could not be invoking the event handler and thus it must be Page_Load. I am not soure if object source is like object sender, and if I should replace RadMenu with RadAjaxManager?
Thanks
I need to identify, when calling NeedDataSource() on my RADGrid, whether the action to invoke this is the RADMenu click (server-side click event handler for this control calls NeedDataSource()) or Page_Load, which calls likewise.
My RADGrid is in a RADAjaxManager:
<telerik:RadAjaxManager ID="AjaxManager1" runat="server" EnableHistory="True"> |
<AjaxSettings> |
<telerik:AjaxSetting AjaxControlID="RadTreeView1"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="RadTreeView1" /> |
<telerik:AjaxUpdatedControl /> |
<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
</AjaxSettings> |
</telerik:RadAjaxManager> |
Thus, will the below work?
RadMenu test = source as RadMenu; |
So if this is null, RadMenu could not be invoking the event handler and thus it must be Page_Load. I am not soure if object source is like object sender, and if I should replace RadMenu with RadAjaxManager?
Thanks