RadControls for ASP.NET AJAX Property which returns the data type of the corresponding column.
Caution |
|---|
Meaningful when filtering is enabled for the grid or client-side command is handled (inside
the OnCommand client-side event handler) and the grid is not bound server-side. Otherwise the
returned value will be 'undefined'!
|
Example:
CopyJavaScript
function getFirstColumnDataType() {
var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
var dataType = masterTable.get_columns()[0].get_dataType();
}