RadDatePicker and anchoring?

7 posts, 0 answers
  1. mac
    mac avatar
    137 posts
    Member since:
    May 2008

    Posted 30 Oct 2008 Link to this post

    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> 
     
  2. Serrin
    Serrin avatar
    286 posts
    Member since:
    Sep 2008

    Posted 30 Oct 2008 Link to this post

    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...  
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. mac
    mac avatar
    137 posts
    Member since:
    May 2008

    Posted 31 Oct 2008 Link to this post

    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
  5. mac
    mac avatar
    137 posts
    Member since:
    May 2008

    Posted 13 Jan 2009 Link to this post

    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
  6. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 14 Jan 2009 Link to this post

    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.
  7. Ryan Gavigan
    Ryan Gavigan avatar
    3 posts
    Member since:
    Oct 2008

    Posted 19 May 2009 Link to this post


    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
  8. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 19 May 2009 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017