Hi there,
On an ajaxified button press, I'm adding dynamically-created RadButtons to an asp:Panel control contained within a RadAjaxPanel on a ASP.Net page using a Master Page but no RadAjaxManager.
However, when I click the dynamically-created buttons, the server-side postback event does not fire, which I kinda need.
I have tried "ajaxifying" the asp:Panel by adding a RadAjaxManager and adding a new AjaxSetting for the dynamically-created button which updates the asp:Panel, but to no avail: I click the button once, no server-side event and the button stays on the page. I click it again, still no server-side event, the button disappears from the page.
I've also tried using the AjaxRequest method on the AjaxPanel via OnClientClicked on the dynamically-created button, but that (oddly) blows away some underlying data so that's no good.
Any thoughts?
On an ajaxified button press, I'm adding dynamically-created RadButtons to an asp:Panel control contained within a RadAjaxPanel on a ASP.Net page using a Master Page but no RadAjaxManager.
foreach (CrmSAWorkflowButton wfb in workflowButtons)
{
RadButton rb = new RadButton();
rb.ID = "uxWfb" + wfb.UniqueName;
rb.CausesValidation = false;
rb.CssClass = "smallSpaceRightAndBelow";
rb.CommandArgument = wfb.ID.ToStringGuid();
rb.Text = wfb.Title;
rb.Click += new EventHandler(rb_Click);
uxWorkflowButtonsP.Controls.Add(rb);
}
However, when I click the dynamically-created buttons, the server-side postback event does not fire, which I kinda need.
I have tried "ajaxifying" the asp:Panel by adding a RadAjaxManager and adding a new AjaxSetting for the dynamically-created button which updates the asp:Panel, but to no avail: I click the button once, no server-side event and the button stays on the page. I click it again, still no server-side event, the button disappears from the page.
I've also tried using the AjaxRequest method on the AjaxPanel via OnClientClicked on the dynamically-created button, but that (oddly) blows away some underlying data so that's no good.
Any thoughts?