Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Calendar > 2009 Q3 RadDatePicker Shared Calendars do not work

Not answered 2009 Q3 RadDatePicker Shared Calendars do not work

Feed from this thread
  • Posted on Nov 4, 2009 (permalink)

    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.

    Reply

  • Dimo Dimo admin's avatar

    Posted on Nov 5, 2009 (permalink)

    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.

    Reply

  • Posted on Nov 5, 2009 (permalink)

    When do you expect this internal build will be available?

    Reply

  • Dimo Dimo admin's avatar

    Posted on Nov 5, 2009 (permalink)

    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.

    Reply

  • Jonathan Elliman avatar

    Posted on Nov 11, 2009 (permalink)

    It has been a week now. Any idea when this will be released?

    Reply

  • Posted on Nov 12, 2009 (permalink)

    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.

    Reply

  • Posted on Nov 20, 2009 (permalink)

    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?

    Reply

  • Dimo Dimo admin's avatar

    Posted on Nov 20, 2009 (permalink)

    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.

    Reply

  • anthony avatar

    Posted on Dec 4, 2009 (permalink)

    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?

    Reply

  • Dimo Dimo admin's avatar

    Posted on Dec 7, 2009 (permalink)

    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.

    Reply

  • anthony avatar

    Posted on Dec 7, 2009 (permalink)

    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>


     

    Reply

  • Dimo Dimo admin's avatar

    Posted on Dec 8, 2009 (permalink)

    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.

    Reply

  • bad nick avatar

    Posted on Dec 16, 2009 (permalink)

    this JavaScript fixed all issues in my AdvancedEditForm after upgrade to Q3, thanks.

    Reply

  • Viral avatar

    Posted on Aug 31, 2010 (permalink)

    I am also facing same problem

    Reply

  • Sebastian Sebastian admin's avatar

    Posted on Aug 31, 2010 (permalink)

    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

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Calendar > 2009 Q3 RadDatePicker Shared Calendars do not work
Related resources for "2009 Q3 RadDatePicker Shared Calendars do not work"

ASP.NET Calendar Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]