All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
<
ClientSettings
>
ClientEvents
OnGridCreated
=
"OnGridCreated"
/>
</
<script type=
"text/javascript"
function
OnGridCreated() {
var
colIndex;
grid = $find(
"<%=RadGrid1.ClientID %>"
);
MasterTable = grid.get_masterTableView();
Rows = MasterTable.get_dataItems();
for
(
i = 0; i < Rows.length; i++) {
col = Rows[i].get_cell(
"ColumnUniqueName"
col.style.textAlign =
"right"
;
colIndex = col.cellIndex;
//to get the cell index
}
MasterTable.HeaderRow.cells[colIndex].style.textAlign =
// to align the header text
</script>