The code sample below produces strange results in all non-IE browsers (actually, it does so in IE6 as well, just not IE7). The first time the "Edit" button is clicked the editor appears but the content area is only about 10 pixels high. Once the "Cancel" button is clicked then all subsequent clicks of the "edit" button result in the editor being rendered properly. I am using VS 2008, ASP.net 3.5 SP1, and Telerik build 2008.03.1314.35
ASPX:
<asp:UpdatePanel runat="server">
<ContentTemplate>
<asp:Button runat="server" ID="edit" Text="edit" OnClick="edit_Click" /><asp:Button runat="server" ID="save" Text="save" OnClick="edit_Click" />
<asp:Panel runat="server" ID="cnt">
<asp:Literal runat="server" ID="txt" Text="testing." />
<telerik:RadEditor runat="server" ID="ed" Width="500px" Visible="false" />
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
Code-Behind:
protected void edit_Click(object sender, EventArgs e)
{
ed.Visible = false;
txt.Visible = true;
if (sender == edit)
{
ed.Visible = true;
ed.Content = txt.Text;
txt.Visible = false;
}
}