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

2009 Q3 RadDatePicker Shared Calendars do not work

16 Answers 401 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Adam L. Ooten
Top achievements
Rank 2
Adam L. Ooten asked on 04 Nov 2009, 09:16 PM
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.

16 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 05 Nov 2009, 02:25 PM
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.
0
Adam L. Ooten
Top achievements
Rank 2
answered on 05 Nov 2009, 02:29 PM
When do you expect this internal build will be available?
0
Dimo
Telerik team
answered on 05 Nov 2009, 03:27 PM
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.
0
Jonathan Elliman
Top achievements
Rank 2
answered on 11 Nov 2009, 08:21 PM
It has been a week now. Any idea when this will be released?
0
Adam L. Ooten
Top achievements
Rank 2
answered on 12 Nov 2009, 02:05 PM
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.
0
towpse
Top achievements
Rank 2
answered on 20 Nov 2009, 02:41 PM
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?
0
Dimo
Telerik team
answered on 20 Nov 2009, 02:54 PM
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.
0
anthony
Top achievements
Rank 1
answered on 04 Dec 2009, 06:40 PM
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?

0
Dimo
Telerik team
answered on 07 Dec 2009, 10:45 AM
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.
0
anthony
Top achievements
Rank 1
answered on 07 Dec 2009, 06:24 PM
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>


 
0
Dimo
Telerik team
answered on 08 Dec 2009, 11:35 AM
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.
0
bad nick
Top achievements
Rank 1
answered on 16 Dec 2009, 03:20 PM
this JavaScript fixed all issues in my AdvancedEditForm after upgrade to Q3, thanks.
0
Viral
Top achievements
Rank 1
answered on 31 Aug 2010, 08:10 AM
I am also facing same problem
0
Sebastian
Telerik team
answered on 31 Aug 2010, 09:50 AM
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
0
Caposjpz
Top achievements
Rank 1
answered on 22 Oct 2014, 02:49 AM
I have the same problem!
0
Vasil
Telerik team
answered on 23 Oct 2014, 02:09 PM
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.

 
Tags
Calendar
Asked by
Adam L. Ooten
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Adam L. Ooten
Top achievements
Rank 2
Jonathan Elliman
Top achievements
Rank 2
towpse
Top achievements
Rank 2
anthony
Top achievements
Rank 1
bad nick
Top achievements
Rank 1
Viral
Top achievements
Rank 1
Sebastian
Telerik team
Caposjpz
Top achievements
Rank 1
Vasil
Telerik team
Share this question
or