RadControls for ASP.NET AJAX RadAjax controls for ASP.NET AJAX support SharePoint and can be integrated with WebParts.
There is a minor detail to be taken into account when adding RadAjaxManager dynamically into a WebPart, though. The control should be added both to Page.Form.Controls collection as well as to Page.Items collection. Otherwise, the code accessing the manager in order to add the necessary AJAX settings for example, would return null:
CopyC#
ScriptManager scriptManager = ScriptManager.GetCurrent(Page);
RadAjaxManager ajaxManager = RadAjaxManager.GetCurrent(Page);
ajaxManager.AjaxSettings.AddAjaxSetting(Button1, Label1);
CopyVB.NET
ajaxManager = New RadAjaxManager
ajaxManager.ID = "RadAjaxManager1"
Me.Page.Items.Add(ajaxManager.GetType, ajaxManager)
Me.Page.Form.Controls.Add(ajaxManager)
We recommend using WebPart OnInit event to add the RadAjaxManager dynamically:
CopyC#
ajaxManager = new RadAjaxManager();
ajaxManager.ID = "RadAjaxManager1";
this.Page.Items.Add(ajaxManager.GetType(), ajaxManager);
this.Page.Form.Controls.Add(ajaxManager);
CopyVB.NET
ajaxManager = New RadAjaxManager
ajaxManager.ID = "RadAjaxManager1"
Me.Page.Items.Add(ajaxManager.GetType, ajaxManager)
Me.Page.Form.Controls.Add(ajaxManager)
as well as adding the necessary AJAX settings into the Page_PreRender event.