I have followed the example that was laid out in previous posts of how to integrate RadControls into Sharepoint and basically, they compile and everything, but when I go to display the webpart, anything that needs to 'fire' doesn't work, e.g. buttons, actions, etc.
So for purposes of demonstrations, I have stripped down to a very basic webpart that simply has only one RadDatePicker in it.
public class WebPart1 : System.Web.UI.WebControls.WebParts.WebPart
protected override void OnInit(EventArgs e)
Page.ClientScript.RegisterStartupScript(typeof(WebPart1), this.ID, "_spOriginalFormAction = document.forms.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();";
ScriptManager sm = ScriptManager.GetCurrent(this.Page);
if (sm == null)
sm = new RadScriptManager();
protected override void OnLoad(EventArgs e)
Panel panel = new Panel();
panel.ID = "Panel1";
RadDatePicker rdp = new RadDatePicker();
rdp.PopupDirection = DatePickerPopupDirection.BottomRight;
rdp.Calendar.Enabled = true;
RadAjaxManager ajaxManager = RadAjaxManager.GetCurrent(this.Page);
if (ajaxManager == null)
ajaxManager = new RadAjaxManager();
ajaxManager.ID = "RadAjaxManager1";
As I said, it will compile and deploy, but when the webpart surfaces the popup button for the calendar doesn't work. In other words clicking on the popup button does nothing, where as if this were not in a webpart the calendar would be displayed.
Can anyone please help me with this, I have been trying various things for several days.