Thanks in advance
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?
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
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: 801Char: 21Error: 'attributes.daytype' is null or not an objectCode: 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:
};
Neither of these methods show any js errors in my sample, so please post a sample app if the problem persists.
-Greg
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>