|ScriptManager.RegisterStartupScript(this, this.GetType(), this.ClientID + "_SplitterBarStartupScript", sb.ToString(), true);
This works fine both when using no Ajax panel at all and also when using the ASP.NET UpdatePanel. After each postback the script is injected correctly and runs. This doesn't work with the RadAjaxPanel though.
I did some testing and found that RegisterClientScriptBlock does fire with the RadAjaxPanel after each postback. I do not want to use this however because the script is injected before the elements have been loaded (too early).
I have also seen suggestions on the forum to use the RadAjaxPanel's ClientScripts collection. This will also not work for me because this is a custom control and doesn't know what other controls are included on the page.
I would like this to work in all 3 scenarios: regular postback, ASP.NET UpdatePanel and RadAjaxPanel.
Please advise as to how I should proceed.