2009 Q3 RadDatePicker Shared Calendars do not work

17 posts, 0 answers
  1. Adam L. Ooten
    Adam L. Ooten avatar
    86 posts
    Member since:
    Sep 2005

    Posted 04 Nov 2009 Link to this post

    Just installed the 2009 Q3 controls.  They seem to have introduced an issue using shared calendars.  I have a RadGrid with a RadDatePicker in a GridTemplateColumn.  When I have more than 1 on the page, after I change a date, I cannot open another date picker.

    It does the same thing in this example:
    http://demos.telerik.com/aspnet-ajax/calendar/examples/design/sunny/defaultvb.aspx#

    I click the date on Departure on either Static or Dynamic and then change the date.  Then you click on the Arrival an the calendar does not pop up.
  2. Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 05 Nov 2009 Link to this post

    Hello Adam,

    Unfortunately, it is true that this problem exists in the Q3 2009 release (2009.3.1103). We have fixed it and changes will take effect in the next internal build and the next service pack. Please excuse us for the inconvenience.

    As an immediate workaround, you can use the following Javascript code. Note that it must be placed in the <body>. Alternatively, you can include it in an external Javascript file, but in this case the registration <script> tag must be in the <body> too.


    <%@ Page Language="C#" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     
    <head runat="server">
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <title>RadControls for ASP.NET AJAX</title>
    </head>
    <body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
     
    page content here
     
    <script type="text/javascript">
     
    if (typeof(Telerik) != "undefined" && typeof(Telerik.Web.UI.Calendar) != "undefined")
    {
        Telerik.Web.UI.Calendar.Popup.prototype.Hide = function(updateData)
        {
            var div = this.DomElement;
            var styleObj = RadHelperUtils.GetStyleObj(div);
             
            if (div)
                $telerik.$(div).stop(true, true);
             
            var thisObj = this;
            removeDiv = function()
            {
                if (div)
                {
                    if (navigator.userAgent.match(/Safari/))
                    {
                        styleObj.visibility = "hidden";
                        styleObj.position = "absolute";
                        styleObj.left = "-1000px";
                    }
                    else
                    {
                        styleObj.display = "none";
                    }
                     
                    styleObj = null;
                     
                    if (div.childNodes.length != 0)
                    {
                        if (navigator.userAgent.match(/Safari/))
                        {
                            div.childNodes[0].style.visibility = "hidden";
                            div.childNodes[0].style.position = "absolute";
                            div.childNodes[0].style.left = "-1000px";
                        }
                        else
                        {
                            div.childNodes[0].style.display = "none";
                        }
                    }
                     
                    var innerElement = div.childNodes[0];
                    if (innerElement != null)
                    {
                        div.removeChild(innerElement);     
                         
                        if (thisObj.Parent != null)
                        {
                            thisObj.Parent.appendChild(innerElement);
                        }
                        else if (thisObj.Sibling != null)
                        {
                            var parentElement = thisObj.Sibling.parentNode;
                            if (parentElement != null)
                                parentElement.insertBefore(innerElement, thisObj.Sibling);
                        }
                                         
                        if (navigator.userAgent.match(/Safari/))
                        {
                            RadHelperUtils.GetStyleObj(innerElement).visibility = "hidden";
                            RadHelperUtils.GetStyleObj(innerElement).position = "absolute";
                            RadHelperUtils.GetStyleObj(innerElement).left = "-1000px";         
                        }
                        else
                        {
                            RadHelperUtils.GetStyleObj(innerElement).display = "none";
                        }
                    }
                    //IFRAME code
                    RadHelperUtils.ProcessIframe(div, false);
                }
            }
             
            if (div && typeof(this.HideAnimationDuration) == "number" && this.HideAnimationDuration > 0)
                $telerik.$(div).fadeOut(this.HideAnimationDuration, removeDiv);
            else
                removeDiv();
                 
            if (this.OnClickFunc != null)
            {
                RadHelperUtils.DetachEventListener(document, "click", this.OnClickFunc);
                this.OnClickFunc = null;
            }
            if (this.OnKeyPressFunc != null)
            {
                RadHelperUtils.DetachEventListener(document, "keydown", this.OnKeyPressFunc);
                this.OnKeyPressFunc = null;
            }
             
            if (updateData && this.ExitFunc)
            {  
                this.ExitFunc();
            }
        }
    }
     
    </script>
     
    </form>
    </body>
    </html>




    Kind regards,
    Dimo
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Adam L. Ooten
    Adam L. Ooten avatar
    86 posts
    Member since:
    Sep 2005

    Posted 05 Nov 2009 Link to this post

    When do you expect this internal build will be available?
  5. Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 05 Nov 2009 Link to this post

    Adam,

    New internal builds are uploaded once in several days, so the next one will be available next week.

    Regards,
    Dimo
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Jonathan Elliman
    Jonathan Elliman avatar
    10 posts
    Member since:
    Oct 2009

    Posted 11 Nov 2009 Link to this post

    It has been a week now. Any idea when this will be released?
  7. Adam L. Ooten
    Adam L. Ooten avatar
    86 posts
    Member since:
    Sep 2005

    Posted 12 Nov 2009 Link to this post

    I should have replied back here but I did not think of it.  The new internal build of 2009.3.1109 workds properly for me.
  8. towpse
    towpse avatar
    224 posts
    Member since:
    Mar 2008

    Posted 20 Nov 2009 Link to this post

    That workaround code seems to do the trick.
    It doesn't look like the 1109 internal build is up anymore. Can anyone comment on the outlook of a new internal build anytime soon?
  9. Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 20 Nov 2009 Link to this post

    Hello Matt,

    You must download the official RadControls Q3 2009 Trial and after that you will start seeing the Q3 2009 internal builds.

    Best wishes,
    Dimo
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  10. anthony
    anthony avatar
    2 posts
    Member since:
    Jun 2009

    Posted 04 Dec 2009 Link to this post

    I've implemented this solution for my shared calenders in a grid. The calenders are set with autopostback=true since I'm updating other controls with the date selected in one of the textboxes.

    When I click in a textbox the calender appears for a second or two then disappears. I've ajaxified the calender and the textboxes.

    Do you have any suggestions on how to make the calender remain until a date is selected?

    Anthony

    PS:
    Is there an estimated time for the next release?

  11. Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 07 Dec 2009 Link to this post

    Hi Anthony,

    You can't set AutoPostBack="true" to a Calendar, which is a subordinate control to a RadDatePicker. The AutoPostBack controls must be the RadDatePickers themselves.

    Q3 2009 SP1 will be released later this week.

    Greetings,
    Dimo
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  12. anthony
    anthony avatar
    2 posts
    Member since:
    Jun 2009

    Posted 07 Dec 2009 Link to this post

    Hi Dimo,
      I misspoke. My autopostback=true is on the RadDatePicker here's some code snippets from my program. What I'm going for is the entry in tb_date1 updates the date in tb_date2.

    Thanks,
      Anthony



    <telerik:RadDatePicker runat="server" ID="sharedPicker" Style="display: none;" AutoPostBack="true">
       <ClientEvents 
    OnDateSelected="dateSelected" />
    </telerik:RadDatePicker>


    <asp:TextBox ID="tb_Date1" AutoPostBack="true" "onclick="showPopup(this, event);" onfocus="showPopup(this, event);"onblur="parseDate(this, event)" runat="server" OnTextChanged="tb_date2_TextChanged">
    </asp:TextBox>

    <
    asp:TextBox ID="tb_Date2" onclick="showPopup(this, event);"
      onfocus
    ="showPopup(this, event);"onblur="parseDate(this, event)" runat="server">
    </asp:TextBox>


     
  13. Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 08 Dec 2009 Link to this post

    Hi Аnthony,

    I don't see any problems with the DatePicker in the provided code snippet. Please open a formal support ticket and attach a full runnable web page there.

    Regards,
    Dimo
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  14. bad nick
    bad nick avatar
    24 posts
    Member since:
    May 2009

    Posted 16 Dec 2009 Link to this post

    this JavaScript fixed all issues in my AdvancedEditForm after upgrade to Q3, thanks.
  15. Viral
    Viral avatar
    1 posts
    Member since:
    Sep 2007

    Posted 31 Aug 2010 Link to this post

    I am also facing same problem
  16. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 31 Aug 2010 Link to this post

    Hi Viral,

    As my colleague Dimo suggested, please start a regular support ticket and provide a sample project in it to investigate the issue you experience. Thus we will be able to provide up-to-point anwer.

    Best regards,
    Sebastian
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  17. Caposjpz
    Caposjpz avatar
    1 posts
    Member since:
    Oct 2014

    Posted 21 Oct 2014 Link to this post

    I have the same problem!
  18. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 23 Oct 2014 Link to this post

    Hello Caposjpz,

    The discussed in this thread problem affects version 5 years ago and is it fixed long ago.

    Do you have any issues using the latest version of our controls?

    Regards,
    Vasil
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017