I have a Training.aspx page in that Page i Have used usercontrol called MyDocument.ascx in that control I have RadEditor Control when I browse the page my Page scroll position shows to the middle where RadEditor Cursor is blinking but i Want to show my page
Scroll position to the top
you need to post the same question in Telerik forums to see why the page focus has been changed because of this control...
other ways to solve this is using javascript to make page position to the top...but if i were you to solve this problem, then i would try to check out with Telerik Dudes...
vaibhavp
Member
10 Points
12 Posts
Allow page scroll position top
Apr 27, 2012 05:50 AM|LINK
Hello
I have a Training.aspx page in that Page i Have used usercontrol called MyDocument.ascx in that control I have RadEditor Control when I browse the page my Page scroll position shows to the middle where RadEditor Cursor is blinking but i Want to show my page Scroll position to the top
Thanks
tusharrs
Contributor
3230 Points
668 Posts
Re: Allow page scroll position top
Apr 27, 2012 06:03 AM|LINK
hi,
put a div at the top of your page
<div class="#topdiv">abc</div>
call javascript method on body load
<body onload="topofthepage()">
javascript function
<script type="text/javascript" language="javascript">
function topofthepage() {
window.location ="#topdiv";
</script>
( Mark as Answer if it helps you out )
View my Blog
Ruchira
All-Star
42885 Points
7019 Posts
MVP
Re: Allow page scroll position top
Apr 27, 2012 09:54 AM|LINK
Hello,
Try by adding the below javascript in the head section of your page
window.onload=function scroll() { document.body.scrollTop = 0; }
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.ramiramilu
All-Star
95275 Points
14072 Posts
Re: Allow page scroll position top
Apr 27, 2012 11:20 AM|LINK
you need to post the same question in Telerik forums to see why the page focus has been changed because of this control...
other ways to solve this is using javascript to make page position to the top...but if i were you to solve this problem, then i would try to check out with Telerik Dudes...
Thanks,
JumpStart