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

RadDatePicker and anchoring?

6 Answers 78 Views
Input
This is a migrated thread and some comments may be shown as answers.
mac
Top achievements
Rank 1
mac asked on 30 Oct 2008, 03:51 PM
heya. I have a couple raddatepickers in a form that requires the user to scroll down to. when they use the control, the page is posting back, even though I have all postbacks set to false. is this by design or is there a method that would allow me to not have the form anchor back to the page top.  I don't think i need to have all those postbacks set to false since the defaults are already false.

source example here.
<%@ Page MaintainScrollPositionOnPostback="true"  Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server">  
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
         <asp:ScriptManager ID="ScriptManager1" runat="server">  
         </asp:ScriptManager> 
    <div style="height:1100px">  
    form stuff  
             </div> <telerik:RadDatePicker  DateInput-AutoPostBack="false" Calendar-AutoPostBack="false" AutoPostBack="false" ID="RadDatePicker1" runat="server" Culture="English (United States)">  
             <Calendar UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" ViewSelectorText="x">  
             </Calendar> 
             </telerik:RadDatePicker> 
    </form> 
</body> 
</html> 
 

6 Answers, 1 is accepted

Sort by
0
Serrin
Top achievements
Rank 1
answered on 30 Oct 2008, 07:22 PM
Hey Mac,

Just curious, what browser are you using and which version of the controls?  I just took your code and dropped it in a blank page with both the regular asp.net ScriptManager and the RadScriptManager and it isn't reproducing that effect...  
0
mac
Top achievements
Rank 1
answered on 31 Oct 2008, 11:35 PM
Odd.. I could have sworn I responded to this already. IE 6 and IE 7 testing. It happens on all my pages where the datepicker is.
mac
0
mac
Top achievements
Rank 1
answered on 13 Jan 2009, 07:49 PM
I think I figured out why the postbacks keep occuring when using the radDatepicker. It was crazy.... every time i selected a new date from the calendar the page would repost and anchor. It would lose certain drop down values etc. I think the reason this was happening was due to the demo version response writing. I just pulled the plug and bought the dll and must say a majority of my site 'wackness' has disappeared in terms of ajax etc.
thanks
mac
0
Sebastian
Telerik team
answered on 14 Jan 2009, 07:34 AM
Hello mac,

Can you please check whether the issue you depicted can be reproduced with the latest official release 2008.3.1125 of RadControls for ASP.NET AJAX or the latest internal build that can be downloaded from your account on our site? Please follow the upgrade instructions from here and let us know about the result.

Best regards,
Sebastian
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ryan Gavigan
Top achievements
Rank 1
answered on 19 May 2009, 01:30 PM

Has there been any workarounds found or recommended to handle this problem of anchoring for versions prior to that version?  I'm currently trying to get around the problem of a dynamically created datepicker generating the anchor tags knocking the page up to the top with version 2008.Q2.1001 and for the application it's not technically feasible at the moment to upgrade the telerik version.  is there a way to duplicate that fix outside of upgrading the version?

thanks

ryan gavigan
0
Sebastian
Telerik team
answered on 19 May 2009, 02:33 PM
Hello Ryan,

Unfortunately it is not possible to append the fix manually in your code. You will need to migrate at least to version Q3 2008 of the suite where the unwanted effect under IE has been addressed.

Kind regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Input
Asked by
mac
Top achievements
Rank 1
Answers by
Serrin
Top achievements
Rank 1
mac
Top achievements
Rank 1
Sebastian
Telerik team
Ryan Gavigan
Top achievements
Rank 1
Share this question
or