hi,
I have a problem with WebHTMLEditor. I have few grids and one HTMLEditor in my web form and when i load the page in browser, automatically the webhtmleditor is getting focused. I tried setting the focus property to False. And even then the same problem persist.
Please assist me, how to short out this problem.
Thanks in advance.
regards
sriram
HI,
The WebHemtlEditor has a Focus property - if set to true the WebHtmlEditor takes the mouse focus when it is loaded, Try setting it to false.
I have the same problem, on my page bottom I have a WebHTMLEditor, which is in an updatePanel, every time the page gets loaded or postbacked, the WebHTMLEditor gets the focus, it cause the page scolled down to the WebHTMLEditor as default.
setting focus=false not help.
I also tried following ways:
setting the scoll bar back to the top using JavaScript,
setting smartNavigation="True"
setting MaintainScrollPositionOnPostback="true"
No luck so far. :(
Anbody has solution for this? Thanks!
Found a walkaround:
At the page load, set the focus to a control whice is on the top of the page: topControl.Focus
At the click event which cause the postback, set causePostbackControl.Focus