RadControls for ASP.NET AJAX
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:
CopyASPX
<telerik:RadGrid ID="RadGrid1" runat="server">
<ClientSettings>
<ClientEvents OnRowDataBound="RadGrid1_RowDataBound" />
</ClientSettings>
</telerik:RadGrid>
CopyJavaScript
function RadGrid1_RowDataBound(sender, args){
args.get_item().get_cell("TitleOfCourtesy").style.fontWeight = (args.get_dataItem()["TitleOfCourtesy"] == "Dr.") ? "bold" : "normal";
}
Note |
|---|
Note that get_cell() method works only with client-side binding. |