I have a RadGrid where the first column is declaratively created as GridBoundColumn:
<%--ID COLUMN--%>
<telerik:GridBoundColumn DataField="ID" DataType="System.Int32" HeaderText="ID" ReadOnly="True"
SortExpression="ID" UniqueName="ID">
<ItemStyle Width="35px"></ItemStyle>
</telerik:GridBoundColumn>
It is defined as the only DataKeyName in the grid:
<MasterTableView DataKeyNames="ID" DataSourceID="WORDC" PageSize="40" AllowMultiColumnSorting="true"
EnableHeaderContextMenu="true" >
Defined in ClientSettings I have:
<ClientEvents OnRowSelected="RowSelected" />
The function RowSelected is defined (to test, there is a bigger "Real" function if I ever get this to work) as:
function RowSelected(sender, args) {
var ID = args.getDataKeyValue("ID")
var label =
"ID:" + args.getDataKeyValue("ID");
}
With the grid populated, EVERY ID column has a value. But when I select a row and break in the function all I ever get is null for args.getDataKeyValue("ID").
WHAT am I missing??????
Thanks,
Joe B