New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Represents a cell from Kendo Grid for ASP.NET MVC

Definition

Namespace:Kendo.Mvc.UI

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

C#
public class GridCell<T> where T : class

Inheritance: objectGridCell<T>

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public GridCell(GridColumnBase<T> column, T dataItem)
Parameters:columnGridColumnBase<T>dataItemT

Properties

The grid column that contains the table cell.

C#
public GridColumnBase<T> Column { get; }

The table cell content.

C#
public Action<T> Content { get; set; }

The data item to which the specified table row is bound.

C#
public T DataItem { get; }
C#
public Grid<T> Grid { get; }

HTML attributes of the table cell (<td>) rendered for the column.

C#
public IDictionary<string, object> HtmlAttributes { get; }

Determines whether the cell is in edit mode.

C#
public bool InEditMode { get; set; }

Determines whether the cell is in insert mode.

C#
public bool InInsertMode { get; set; }

Specifies the Selected state of the table cell.

C#
public bool Selected { get; set; }

The template which renders the column content.

C#
public HtmlTemplate<T> Template { get; }

The text rendered in the table cell.

C#
public string Text { get; set; }