This is a migrated thread and some comments may be shown as answers.

DatePicker scrolls page back to the top

9 Answers 128 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Sean
Top achievements
Rank 1
Sean asked on 26 Nov 2008, 03:37 PM
Hello,

Why the DatePicker control keeps scrolling my page to the top.
is there a way to fix that?

thanks,

9 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 26 Nov 2008, 03:38 PM
Hello Sroun,

Can you point us to some of our online examples where this can be reproduced?

Regards,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Sean
Top achievements
Rank 1
answered on 26 Nov 2008, 03:47 PM
Can you give me some link. I couldn't find any working example.
Basically my page is in a content of a masterpage. One of my datepicker is in the bottom of my page.
Each time i select a date its just scroll back to the top of the page.
I try to wrap it in a panel, an updatepanel and even use MaintainScrollPositionOnPostback="true" on my pages and it still scrolls the page back to the top. I aslo set autopostback to false.
0
Vlad
Telerik team
answered on 26 Nov 2008, 03:49 PM
Hi,

Here is an example:
http://demos.telerik.com/aspnet/prometheus/Calendar/Examples/DatePicker/CustomPopup/DefaultCS.aspx

Kind regards,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Sean
Top achievements
Rank 1
answered on 26 Nov 2008, 03:50 PM
try to move the datepicker down pass the height of the page.
You probably will see the problem.
0
Vlad
Telerik team
answered on 26 Nov 2008, 03:54 PM
Hi,

I just tried this and everything worked as expected on my end. I have attached a screenshot.

Greetings,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Sean
Top achievements
Rank 1
answered on 26 Nov 2008, 04:01 PM
Sorry but i can't find anything i did wrong. I am using the latest radcontrol for asp.net :2008.3 1125.
I used the rad ajax manager to put an update panel around the datepicker itself. After I picked the date it scrolls up and back down.
0
Pavel
Telerik team
answered on 28 Nov 2008, 06:45 AM
Hi Sroun,

I have prepared a small sample following your instructions but could not observe any such problem with it. Could you please try it and see what is different in your scenario?

Let us know how it goes.

Greetings,
Pavel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Sean
Top achievements
Rank 1
answered on 01 Dec 2008, 02:50 PM
Hello Pavel,

I was unable to run your example in my VS2008.
Meanwhile, I think i have similar issue with this post:
http://www.telerik.com/community/forums/aspnet-ajax/calendar/raddatepicker-broken-in-sp2.aspx

Thank you
0
Sean
Top achievements
Rank 1
answered on 01 Dec 2008, 04:33 PM
It's fixed. I tried to make sure that I have upgraded my telerik version.
Tags
Ajax
Asked by
Sean
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Sean
Top achievements
Rank 1
Pavel
Telerik team
Share this question
or