I am using several settings in RadAjaxManager. I have a server control asp button which re-loads the whole page when clicked. To revent that I put this setting in RadAjaxManager
<telerik:AjaxSetting AjaxControlID="btnPrint">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="btnPrint" LoadingPanelID="RadAjaxPanel"/>
</UpdatedControls>
</telerik:AjaxSetting>
but for some reason my code behind click event does not fire. Any ideas please
<telerik:RadAjaxPanel ID="RadAjaxPanel" PostBackControls="btnPrint" runat="server">
<div class="grid-wrapper" id="subcodeDiv" style="padding: 0px; margin-top: 20px; margin-left: 0; margin-right: 0px; width: 1160px; float: left; overflow: hidden">
<table class="subcodesdata">
<tr>
<td>
<asp:Button ID="btnPrint" runat="server" Text="Print" CssClass="button" OnClick="btnPrint_Click" ></asp:Button>
</td>
</tr>
</table>
</div>
</telerik:RadAjaxPanel>
The problem is that you applied both
RadAjaxManagerandRadAjaxPanelto the same button, which is wrong and unnecessary. You just need to pick one of those methods here.Please try the following working code samples. When you click the Print button 1, the text will be loaded into the
spantag and displayed on the screen without the page being refreshed. It works the same for Print button 2 as well.RadAjaxPanel method
RadAjaxManager method