Re: WebCalendar Pop up Mode not working

Legacy

A description has not yet been added to this group.

WebCalendar Pop up Mode not working

  • rated by 1 users
  • This post has 10 Replies |
  • 5 Followers
  • We have updated the ComponentOne controls with newer versions and after that we are facing problem with the C1WebCalendar PopUp mode. The  WebCalendar is not poping out properly, it collapses quickly(it is just like a flash). The AutoCollapse property is also set to true. Do I need to set some other property or implement something else with it?. I am using it with C1WebDateEdit. Please reply ASAP.

     

     

    Thanks in advance

  • You try setting the AutoCollapse property to false if you do not want the calendar to collapse quickly. could you please send this as a web request from our website www.ComponentOne.com or send it to support@componentone.com?
     
    Regards,
    Patrick
     
    <deboshreeb> wrote in message news:202170@10.0.1.98...
    We have updated the ComponentOne controls with newer versions and after that we are facing problem with the C1WebCalendar PopUp mode. The  WebCalendar is not poping out properly, it collapses quickly(it is just like a flash). The AutoCollapse property is also set to true. Do I need to set some other property or implement something else with it?. I am using it with C1WebDateEdit. Please reply ASAP.

     

     

    Thanks in advance



    http://helpcentral.componentone.com/cs/forums/p/74398/202170.aspx#202170

  • I'm experiencing the same problem and don't matter if the AutoCollapse property is set to false or true. When it will be solved?

    Regards,

    José Carlos.

  • I have the same problem. Any response yet?

  • C1WebInput.2_2.0.20073.430.zip

    If AutoCollapse = False doesn't work for this issue you can either revert back to use version 20073.48 of C1WebCalendar and connect the 2 controls using the WebCalendar property of C1WebDateEdit. available here http://helpcentral.componentone.com/CS/forums/t/73853.aspx

    Or you can connect them using the javascript methods as demonstrated in the WebCalendar sample site, for which you will need to use build 20073.430 of C1WebInput (attached).  With this approach you can use the latest C1WebCalendar (20073.53) as well.

    regards,
    Greg

    Greg Lutz ComponentOne

  • Greg

    The WebCalendar sample site flashes, too. 

  • I download the zip file you provide to fix the web calendar month selection issue, it resolved it but now i'm getting the following javascript error.

     dayCell.attributes.daytype.value' is null or not an object Error

    in the following code block (bold line)

    MonthView.prototype.RefreshDate = function(date)

    {

    if (date < this._startDate || date > this._endDate) return;

     

    var offset = (Math.abs(date - this._startDate))/(24*60*60*1000);

    var row = Math.floor(offset / this._owner.DayColumns);

    var col = offset % this._owner.DayColumns;

     

    if (this._owner.ShowWeekNumbers) col++;

    if (this._owner.ShowWeekDays) row++;

    if (!this._owner.IsSingleMonth()) row++;

     

    var tbl = document.getElementById(this._id);

    if (tbl)

    {

    if (row < tbl.rows.length)

    {

    var r = tbl.rows[row];

    if (col < r.cells.length)

    {

    var dayCell = r.cells[col];

    var dayType = this.GetDayType(date);

    dayCell.attributes["daytype"].value = dayType; 

    this._owner.RefreshDayCell(dayCell);

    }

    }

    }

    }

  • I am getting the same error.  I don't have source code, but the error is always exactly the same:

    Line: 801
    Char: 21
    Error: 'attributes.daytype' is null or not an object
    Code: 0

    When the error occurs, it is not possible to use the calendar to set the date. 

    I am using version 2.0.20082.57 of the C1WebCalendar and 2.0.20082.434 of the C1WebDateInput.  A fix would sure be nice.

  • With the latest builds we should be able to successfully connect these two controls in this manner:

    Server side:

    C1WebDateEdit1.WebCalendar = C1WebCalendar1;

    or client side:

    function C1WebDateEdit1_OnClientInit(aC1Edit){  aC1Edit.set_webCalendar("ctl00_ContentPlaceHolder1_C1WebCalendar1_Client");

    };

    Neither of these methods show any js errors in my sample, so please post a sample app if the problem persists. 


    -Greg

    Greg Lutz ComponentOne

  • I am getting the same 'attributes.daytype' is null or not an object error when using the popup calendar inside a webdialog (C1Input v2.0.20082.434 / Calendar v2.0.20082.57 / C1WebDialog v3.0.20082.36).

    This can be seen from the following simple example (the skins are just the office 2007 / Vista appearance) removed to show relevant code.

    1) Change the date on the page, press postback, can still change the date after postback

    2) Show the dialog, change the date in the dialog and postback - error, and can no longer set the date in the dialog

     

        <c1:C1WebDateEdit ID="C1WebDateEdit2" runat="server" SkinID="PopupCalendar" WebCalendar="C1WebCalendar2" />
    <c1:C1WebCalendar ID="C1WebCalendar2" runat="server" SkinID="Popup" />

    <asp:Button ID="Button1" runat="server" Text="PostBack" />
    <br />

    <input type="button" id="Button2" runat="server" value="Show" onclick="$get('ctl00_cntMain_C1WebDialog1').control.show();"/>

    <c1:C1WebDialog ID="C1WebDialog1" runat="server" SkinID="Resizable" Height="190px" Width="260px" >
    <ContentTemplate>

    <c1:C1WebDateEdit ID="C1WebDateEdit3" runat="server" SkinID="PopupCalendar" WebCalendar="C1WebCalendar3" />
    <c1:C1WebCalendar ID="C1WebCalendar3" runat="server" SkinID="Popup" />

    <asp:Button ID="Button3" runat="server" Text="PostBack" />

    </ContentTemplate>
    </c1:C1WebDialog>
  • The problem does not happen if the ClientCustomButtonClick and ClientOnSelChange client events are used to display the calendar / set the date instead of using the WebCalendar property.
Page 1 of 1 (11 items)