get_dataType() | RadGrid for ASP.NET AJAX Documentation
Edit this page

get_dataType()

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'!

get_dataType()

Example:

function getFirstColumnDataType() {
    var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
    //determine the data type for the first grid column
    var dataType = masterTable.get_columns()[0].get_dataType();
} 
Is this article helpful? No Yes
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy