The code below has a link to cause a post back (asynchronous or not) followed by div with a top-padding of 5000 🙂 – and the new HtmlEditorExtender control found in the Ajax Control Toolkit (4.1.51116).
The Problem:
Clicking the link at the top of the page, causes the HtmlEditorExtender to steal the focus, scrolling all the way down to the bottom.
The Question:
Does anyone know if this is a known bug?
Can anyone think of a work around?
I can’t even think how to ever use this control on a page with any other controls that cause postbacks!
The Code:
<div>
<asp:UpdatePanel runat="server">
<ContentTemplate>
<asp:LinkButton runat="server">test asynch postback - PLEASE DONT SCROLL DOWN!! :)</asp:LinkButton>
</ContentTemplate>
</asp:UpdatePanel>
<br />
<div style="padding-top: 5000px">
Nooooooooooooooooooooooooo!!!!
<asp:TextBox ID="txtPageBody" TextMode="MultiLine" Width="200px" runat="server" />
<act:HtmlEditorExtender ID="htmlPageBody" runat="server" TargetControlID="txtPageBody" >
<Toolbar>
<act:Bold />
</Toolbar>
</act:HtmlEditorExtender>
</div>
</div>
HtmlEditorExtender should be added as a tag, but don’t have the reputation 🙂
override the function that is stealing the focus on your page, with the focus line removed:
from here:
http://ajaxcontroltoolkit.codeplex.com/workitem/27026