Spread for ASP.NET 7.0 Product Documentation
RatingCellType Constructor
See Also  Example Support Options
FarPoint.Web.Spread.Extender Assembly > FarPoint.Web.Spread.Extender Namespace > RatingCellType Class : RatingCellType Constructor


Glossary Item Box

Creates a new ASP.NET AJAX extender rating cell.

Syntax

Visual Basic (Declaration) 
Public Function New()
Visual Basic (Usage)Copy Code
Dim instance As New RatingCellType()
C# 
public RatingCellType()

Example

C#Copy Code
FarPoint.Web.Spread.Extender.RatingCellType rate = new FarPoint.Web.Spread.Extender.RatingCellType();
rate.StarCssClass = "ratingStar";
rate.EmptyStarCssClass = "emptyRatingStar";
rate.FilledStarCssClass = "filledRatingStar";
rate.WaitingStarCssClass = "savedRatingStar";
rate.CurrentRating = 2;
rate.MaxRating = 5;
rate.RatingDirection = AjaxControlToolkit.RatingDirection.LeftToRightTopToBottom;
rate.ShowEditor = true;
FpSpread1.ActiveSheetView.Cells[0, 0].CellType = r;

.ratingStar 
{
    font-size: 0pt;
    width: 13px;
    height: 12px;
    margin: 0px;
    padding: 0px;
    cursor: pointer;
    display: block;
    background-repeat: no-repeat;
}

.filledRatingStar {
    background-image: url(images/FilledStar.png);

}

.emptyRatingStar {
    background-image: url(images/EmptyStar.png);
}

.savedRatingStar {
    background-image: url(images/SavedStar.png);
}

Visual BasicCopy Code
Dim rate As New FarPoint.Web.Spread.Extender.RatingCellType
rate.StarCssClass = "ratingStar"
rate.EmptyStarCssClass = "emptyRatingStar"
rate.FilledStarCssClass = "filledRatingStar"
rate.WaitingStarCssClass = "savedRatingStar"
rate.CurrentRating = 2
rate.MaxRating = 5
rate.RatingDirection = AjaxControlToolkit.RatingDirection.LeftToRightTopToBottom
rate.ShowEditor = True
FpSpread1.ActiveSheetView.Cells(0, 0).CellType = r

.ratingStar 
{
    font-size: 0pt;
    width: 13px;
    height: 12px;
    margin: 0px;
    padding: 0px;
    cursor: pointer;
    display: block;
    background-repeat: no-repeat;
}

.filledRatingStar {
    background-image: url(images/FilledStar.png);

}

.emptyRatingStar {
    background-image: url(images/EmptyStar.png);
}

.savedRatingStar {
    background-image: url(images/SavedStar.png);
}

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.