With this RADGrid setup
<telerik:RadGrid ID="RgComparisonGrid" runat="server" OnInsertCommand="RgComparisonGrid_InsertCommand" OnUpdateCommand="RgComparisonGrid_UpdateCommand" OnItemCreated="RgComparisonGrid_ItemCreated" OnItemInserted="RgComparisonGrid_ItemInserted" OnItemDataBound="RgComparisonGrid_ItemDataBound" OnPreRender="RgComparisonGrid_PreRender" AllowAutomaticInserts="false" AutoGenerateColumns="false" OnNeedDataSource="RgComparisonGrid_NeedDataSource" AllowAutomaticDeletes="false" AllowAutomaticUpdates="false" MasterTableView-AllowAutomaticInserts="false"> <MasterTableView AutoGenerateColumns="false" CommandItemDisplay="Top" AllowAutomaticInserts="false" DataKeyNames="ComparisonId, SubjectId_FK, ResultsId" Font-Size="Medium" NoMasterRecordsText="No Comparisons Added" CommandItemSettings-AddNewRecordText="Add New Comparison">I am not able to add a new record I am getting this error message:
Unhandled exception at line 1, column 123034 in http://localhost:52028/bundles/MsAjaxJs?v=c42ygB2U07n37m_Sfa8ZbLGVu4Rr2gsBo7MvUEnJeZ81
0x800a139e - JavaScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Anyone have a suggestions as to why?
