GridRatingColumn
A databound column type in RadGrid that displays a RadRating control in view and edit mode
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class GridRatingColumn : GridEditableColumn, IStateManager, IComparable, IGridEditableColumn, IGridDataColumn
Inheritance: objectGridColumnGridEditableColumnGridRatingColumn
Implements:
Inherited Members
Constructors
public GridRatingColumn()
Properties
Gets or sets a value indicating whether the column allows rating in view mode. The default value is false
public virtual bool AllowRatingInViewMode { get; set; }
A Boolean value indicating whether the column allows rating in view mode. The default value is false
Gets or sets the field name from the specified data source to bind to the GridRatingColumn
public virtual string DataField { get; set; }
Gets or sets a value indicating whether the direction of the RadRating control should be reversed. The default value is false
public virtual bool IsDirectionReversed { get; set; }
A Boolean value indicating whether the direction of the RadRating control should be reversed. The default value is false
This property is supposed for developers of new grid columns. It gets whether a column is currently ReadOnly. The ReadOnly property determines whether a column will be editable in edit mode. A column for which the ReadOnly property is true will not be present in the automatically generated edit form.
public override bool IsEditable { get; }
A boolean value, indicating whether a specific column is editable.
Overrides:
Gets or sets a value indicating the number of items RadRating in each cell of the GridRatingColumn will show
public virtual int ItemCount { get; set; }
An Integer value indicating the number of items RadRating in each column cell will show. The default value is 5
Gets or sets a value indicating the rating precision of the RadRating control in each cell of the GridRatingColumn. The default value is RatingPrecision.Item
public virtual RatingPrecision Precision { get; set; }
An enumerated RatingPrecision value undicatig the precision of the RadRating control in each cell. The defautl value is RatingPrecision.Item
Gets or sets a value indicating the selection mode of the RadRating control in each cell of the GridRatingColumn. The default value is RatingSelectionMode.Continuous
public virtual RatingSelectionMode SelectionMode { get; set; }
An enumerated RatingSelectionMode value indicating the selection mode of the RadRating control in each cell. The default value is RatingSelectionMode.Continuous
Methods
Creates a copy of the current column.
public override GridColumn Clone()
Overrides:
Note: When implementing/overriding this method be sure to call the base member or call CopyBaseProperties to be sure that all base properties will be copied accordingly
protected override void ColumnEditorChange(IGridColumnEditor newValue)
Overrides:
protected override void CopyBaseProperties(GridColumn fromColumn)
Overrides:
protected override IGridColumnEditor CreateDefaultColumnEditor()
Overrides:
Extracts the values from the editedItem and fills the names/values pairs for each data-field edited by the column in the newValues dictionary.
public override void FillValues(IDictionary newValues, GridEditableItem editableItem)
dictionary to fill. This param should not be null (Nothing in VB.NET)
editableItemGridEditableItemthe GridEditableItem to extract values from
Overrides:
protected virtual void OnCellDataBound(object sender, GridCellDataBoundEventArgs args)
Sets the value of the property CurrentFilterValue as a text on the TextBox control found in the cell
protected override void SetCurrentFilterValueToControl(TableCell cell)
Overrides:
Instantiates the filter controls (text-box, image.) in the cell given
This method should be used in case you develop your own column. It returns true if the column supports filtering.