New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
get_cell
This method takes a column UniqueName and returns the corresponding client table cell of the row. Useful to reference controls inside the cell or changing the appearance of the cell content.
get_cell(columnUniqueName) | ||
---|---|---|
columnUniqueName | String | The UniqueName of the column which identifies the cell uniquely |
Example:
ASP.NET
<telerik:RadGrid RenderMode="Lightweight" ID="RadGrid1" runat="server">
<ClientSettings>
<ClientEvents OnRowDataBound="RadGrid1_RowDataBound" />
</ClientSettings>
</telerik:RadGrid>
JavaScript
function RadGrid1_RowDataBound(sender, args){
// conditional formatting
args.get_item().get_cell("TitleOfCourtesy").style.fontWeight = (args.get_dataItem()["TitleOfCourtesy"] == "Dr.") ? "bold" : "normal";
}
get_cell() method works only with client-side binding.