I am trying to edit connected webpart to use the RadMager/Radpanel instead on an ajax update panel are there any C# examples, on this implimentation.
private void SetupSharePointAjax()
{
this._hostPanel = new UpdatePanel();
this._hostPanel.ID = AJAXCommon.AJAX_HOSTPANEL_NAME + this.ClientID;
this._hostPanel.UpdateMode = UpdatePanelUpdateMode.Conditional;
this._hostPanel.ChildrenAsTriggers = true;
this.Controls.Add(_hostPanel);
if (this.Page.Form != null)
{
ScriptManager.RegisterStartupScript(
this, typeof(ClientsWebPart),
AJAXCommon.SHAREPOINT_AJAX_POSTBACK_SCRIPTNAME,
AJAXCommon.SHAREPOINT_AJAX_POSTBACK_SCRIPT,
true);
private
void CreateGrid()
{
_gridView.Columns.Clear();
AddColumnsToGrid();
this._scriptManager = ScriptManager.GetCurrent(this.Page);
if (_scriptManager == null) // Add a script manager
{
this._scriptManager = new ScriptManager();
this._scriptManager.EnablePartialRendering = true; // needed for Update Panel to work
this._scriptManager.EnableScriptLocalization = true;
this.Controls.AddAt(0, this._scriptManager); // Script Manager should be the first control on the form
}
this.SetupSharePointAjax();