An Ajaxified Control Still Makes Postbacks
Environment
| Product | Progress® Telerik® UI for ASP.NET AJAX |
Description
What can I do when an ajaxified control still makes postbacks?
Solution
If you have added the AjaxSetting for a control that will be ajaxified, but it still makes regular postbacks, use any of the following approaches to handle this issue:
-
If your
AjaxSettingsare defined in ASPX, verify whether the controlIDcompletely matches the correspondingAjaxSetting. Also, check whether the AjaxManager designer shows your control as ajaxified, which will ensure that the manager will find and ajaxify the control at runtime. -
If your
AjaxSettingsare defined in the code-behind, check if you are adding yourAjaxSettingson the event-handler of each control.AjaxSettingsare not preserved in theViewStateso you have to add them on eachPageLoad. In such cases, you may find your ajaxified control making a postback on the first try.