I have been struggling with the jQuery UI DatePicker and almost started using an alternate one. If my grid causes the page to scroll down, and I open a dialog with a DatePicker on it, after I choose the date, the window would scroll to the top. I looked over the code for the DatePicker and nowhere are they setting the scroll position.
After banging my head I noticed that the date selector was simply an anchor tag with href=”#”, which defaults to the top of the document.
In the jQuery UI code I simply replaced all of the href=”#” with javascript: function() { return false };