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

RadCalendar navigation bug in firefox?

4 Answers 134 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
aozora
Top achievements
Rank 2
aozora asked on 11 Feb 2009, 10:52 AM
Hi all, i'm currently using RadControls for ASP.NET AJAX Q3 2008 version 2008.3.1314.35

When i navigate the calendar on firefox and refresh the page, the navigation seemed to be cached from my previous position. For example if i already navigate to October 2009, refresh the page (back to February 2009), and click next, i get November 2009 instead of March 2009.

And the second problem I have is that I cannot change the NavigationNextImage to custom image in Q3 version using the property box, but i can change it from css class like this:

    .RadCalendar1 .rcTitlebar .rcFastPrev
    {
        background-position:3px -48px;
    }

Can anyone tell me why this happen on firefox and how to change the image without using the css class?

Best regards,
Khonato

4 Answers, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 16 Feb 2009, 12:44 PM
Hello Khonato,

Could you provide more details about your scenario? Are you using ajax, how do you update the page and the Calendar? Pasting some markup and code might be helpful to understand the problem better.

Regarding the second problem I just tested it and was able to assign an image through the property grid with the latest official version of the controls.

Greetings,
Pavel
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.
0
aozora
Top achievements
Rank 2
answered on 19 Feb 2009, 08:52 AM
Hi Pavel,

I'm sorry for the late reply, about the firefox scenario, i'm just using a simple page with a single radcalendar control like this:
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %> 
 
<%@ 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></title
</head> 
<body> 
    <form id="form1" runat="server"
    <asp:ScriptManager ID="ScriptManager1" runat="server"
    </asp:ScriptManager> 
    <div> 
        <telerik:RadCalendar ID="RadCalendar1" runat="server" Font-Names="Arial, Verdana, Tahoma" 
            ForeColor="Black" Style="border-color: #ececec"
        </telerik:RadCalendar> 
    </div> 
    </form> 
</body> 
</html> 
 

about the second problem, i was putting a RadCalendar on a usercontrol with folder structure like this:

Website1
 |-- Images
 |       |-- arrowLeft.gif
 |       |-- arrowRight.gif
 |-- UserControls
 |       |-- calendar.ascx
 |-- Default.aspx

can you tell me the right way to set the NavigationNextImage from the RadCalendar inside calendar.ascx?
i've tried using ~/Images/arrowRight.gif and it does work after the page renders, but on the visual studio 2008 ide it's showing error message like this:

Error rendering the control: The application relative virtual path '~/Images/arrorRight.gif' cannot be made absolute. because the path to the application is not known.

thank you,
khonato


0
Accepted
Dimo
Telerik team
answered on 23 Feb 2009, 10:38 AM
Hi aozora,

Thanks for the sample page. Here is some information on the two issues:

1. Navigation in Firefox


Unfortunately, this is a problem, related to the browser behavior. It can be reproduced with a simple asp:TextBox as well - set an initial value with the Text property, type something different and click on Refresh. Of course, we will have to fix this. In the meantime, please use the following workaround:

RadCalendar declaration

<telerik:RadCalendar ID="RadCalendar1" runat="server">
    <ClientEvents OnLoad="SetFocusedDate" />
</telerik:RadCalendar>


Javascript

function SetFocusedDate(sender, args) 
    var myDate = new Date(); 
    sender.set_focusedDate(new Array(myDate.getFullYear(), parseInt(myDate.getMonth() + 1), myDate.getDay())); 
    sender._serializeAuxDates(); 
    sender._moveToDate(sender.get_focusedDate(), true); 


2. DesignTime problems when using custom navigation images

You are setting the navigation image URL correctly. The DesignTime problem is now fixed and changes will take effect in Q1 2009, due in March.

I have updated your Telerik points for reporting these problems. Thank you.


Best wishes,
Dimo
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.
0
aozora
Top achievements
Rank 2
answered on 28 Feb 2009, 04:54 AM
Hi Dimo,

Sorry for the late reply, the firefox bug fix works perfectly for plain RadCalendar, i'm currently trying to integrate it to my existing script which still caused a javascript error. I'll post a workaround if i found one, i think my bug is caused by Page_Load event from code behind, i'm loading some data into the calendar on Page_Load. I've tried to change the RadCalendar1.FocusedDate from Page_Load event but the bug still occured..

Thank you very much,
Khonato
Tags
Calendar
Asked by
aozora
Top achievements
Rank 2
Answers by
Pavel
Telerik team
aozora
Top achievements
Rank 2
Dimo
Telerik team
Share this question
or