Spread for ASP.NET 11 Product Documentation
DateCalendarCellType Constructor
Example 


FarPoint.Web.Spread.Extender Assembly > FarPoint.Web.Spread.Extender Namespace > DateCalendarCellType Class : DateCalendarCellType Constructor
Creates a new ASP.NET AJAX extender date calendar cell.
Syntax
'Declaration
 
Public Function New()
'Usage
 
Dim instance As New DateCalendarCellType()
public DateCalendarCellType()
Example
This example creates a cell with a calendar editor.
FarPoint.Web.Spread.Extender.DateCalendarCellType dc = new FarPoint.Web.Spread.Extender.DateCalendarCellType();
dc.Animated = true;
dc.DateFormat = "MM/dd/yyyy";
dc.EnableOnClient = true;
AjaxControlToolkit.MaskedEditExtender mee = new AjaxControlToolkit.MaskedEditExtender();
mee.Mask = "99/99/9999";
mee.MaskType = AjaxControlToolkit.MaskedEditType.Date;
dc.Extenders.Add(mee);
dc.ShowEditor = true;
FpSpread1.ActiveSheetView.Cells[0, 0].CellType = dc;
Dim dc As New FarPoint.Web.Spread.Extender.DateCalendarCellType
dc.Animated = True
dc.DateFormat = "MM/dd/yyyy"
dc.EnableOnClient = True
Dim mee As New AjaxControlToolkit.MaskedEditExtender
mee.Mask = "99/99/9999"
mee.MaskType = AjaxControlToolkit.MaskedEditType.Date
dc.Extenders.Add(mee)
dc.ShowEditor = True
FpSpread1.ActiveSheetView.Cells(0, 0).CellType = dc
See Also

Reference

DateCalendarCellType Class
DateCalendarCellType Members