I'm using in my application: visual studio 2008 ,framework 3.5 and the new version of Prometheus.
I have a page with 2 buttons (Button1 and Button2), a RadChart (RadChart1) and a RadGrid (RadGrid1). All these controls are in a content page.
I just can see the Button1 in the load event. So, when I click on Button1 I get the values for the RadGrid1 and the RadChart1 and the Button2 appears in the page. And I use the next code in the content page:
<
telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX ="true">
<AjaxSettings >
<telerik:AjaxSetting AjaxControlID="Button1" >
<UpdatedControls >
<telerik:AjaxUpdatedControl ControlID="RadChart1" LoadingPanelID="RadAjaxLoadingPanel1" />
<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1"/>
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"
Width="75px">
<img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
style="border: 0px;" />
</telerik:RadAjaxLoadingPanel>
I use the property visible of all the controls in order to get this.
My problem is when I click on Button1 the RadChart1 and the RadGrid1 work but Button2 doesn't appear. And I tried to solved it using the next code:
<
telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX ="True">
<AjaxSettings >
<telerik:AjaxSetting AjaxControlID="Button1" >
<UpdatedControls >
<telerik:AjaxUpdatedControl ControlID="RadChart1" LoadingPanelID="RadAjaxLoadingPanel1" />
<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1"/>
<telerik:AjaxUpdatedControl ControlID="Button2" LoadingPanelID="RadAjaxLoadingPanel1"/>
</
UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"
Width="75px">
<img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
style="border: 0px;" />
</telerik:RadAjaxLoadingPanel>
Using the last code I can see the Button2 but when I click on this button , it doesn't work.
And I have this code in code behind :
Protected
Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnExport.Click
Me.RadGrid1.ExportSettings.IgnorePaging = True
Me.RadGrid1.MasterTableView.ExportToExcel()
End Sub
Any suggestion?
Thank you