This occurs when you have a GridClientSelectColumn
. By default a RadGrid fires server side events when a row is clicked, so it has to know that you want the rows to be selected on the client side instead.
The client settings parameters look like this:
<ClientSettings>
<Selecting AllowRowSelect="True"></Selecting>
</ClientSettings>
They fit in the XML at the root of the declaration of the RadGrid. I've put them before the columns for readability, but they can come after as well.
Notice the <ClientSettings>
and the <telerik:GridClientSelectColumn...
<telerik:RadGrid ID="mygrid"
runat="server" AutoGenerateColumns="false"
AllowSorting="true"
OnNeedDataSource="mygrid_NeedDataSource"
AllowFilteringByColumn="False">
<ClientSettings>
<Selecting AllowRowSelect="True"></Selecting>
</ClientSettings>
<MasterTableView DataKeyNames="myColumn" Name="Header">
<Columns>
<telerik:GridClientSelectColumn ItemStyle-Width="25px" />
<telerik:GridBoundColumn DataField="myColumn" HeaderText="My Column" />
</Columns>
</MasterTableView>
</telerik:RadGrid>
Or, as you have discovered, you can remove the GridClientSelectColumn
and fix the error that way.