First an foremost, let me tell you have done an excellent job with this product, is robust, portable and very well architected, im glad to be using them.
Second, I haven't been able to position my loading indicator correctly, it always appear in the top and the EnableSkinTransparency is not working.
Im doing the whole job as a server control (no aspx) it is also executed in the OnInit() of the webpart
Thanks for your support
#region
Ajax initialization
Page.ClientScript.RegisterStartupScript(
typeof(ReferralsListWebPart1), this.ID, "_spOriginalFormAction = document.forms[0].action;_spSuppressFormOnSubmitWrapper=true;", true);
if (this.Page.Form != null)
{
string formOnSubmitAtt = this.Page.Form.Attributes["onsubmit"];
if (!string.IsNullOrEmpty(formOnSubmitAtt) && formOnSubmitAtt == "return _spFormOnSubmitWrapper();")
{
this.Page.Form.Attributes["onsubmit"] = "_spFormOnSubmitWrapper();";
}
}
RadAjaxPanel panel = new RadAjaxPanel();
panel.ID =
"RadAjaxPanel1";
this.Controls.Add(panel);
RadAjaxManager ajaxManager = RadAjaxManager.GetCurrent(this.Page);
if (ajaxManager == null)
{
ajaxManager =
new RadAjaxManager();
ajaxManager.ID =
"RadAjaxManager1";
Controls.Add(ajaxManager);
this.Page.Items.Add(typeof(RadAjaxManager), ajaxManager);
}
RadAjaxLoadingPanel loadingPanel = new RadAjaxLoadingPanel();
loadingPanel.ID =
"AjaxLoadingPanel1";
loadingPanel.Width =
Unit.Percentage(100);
loadingPanel.Height =
Unit.Pixel(400);
loadingPanel.Transparency = 25;
loadingPanel.EnableSkinTransparency =
true;
AjaxLoadingPanelBackgroundPosition position = new AjaxLoadingPanelBackgroundPosition();
position =
AjaxLoadingPanelBackgroundPosition.Center;
loadingPanel.BackgroundPosition = position;
Image image = new Image();
image.ID =
"loadingImage";
image.AlternateText =
"Loading...";
image.ImageUrl =
"/_layouts/images/loading.gif";
loadingPanel.Controls.Add(image);
this.Controls.Add(loadingPanel);
panel.LoadingPanelID =
"AjaxLoadingPanel1";
#endregion