I get the following error (Using VS2010 .Net and Dynamic Data + latest DD bits for Telerik RadGrid, and Entity Framework for data model);
Error: Store update, insert, or delete statement affected an unexpected number of rows (0). Entities may have been modified or deleted since entities were loaded. Refresh ObjectStateManager entries.
when Inserting with the following code;
Note I've commented out the telerik command columns (wich work fine) to get the command buttons in the same column (and use icons removed for simplification)
Note: the error only occurs when clicking Update during Insert, and just by changing button the the two telerik buttons commented out the error goes away :(
Regards
Steve Naughton (MVP)
Error: Store update, insert, or delete statement affected an unexpected number of rows (0). Entities may have been modified or deleted since entities were loaded. Refresh ObjectStateManager entries.
when Inserting with the following code;
<Columns> <telerik:GridTemplateColumn UniqueName="CommandColumn"> <ItemTemplate> <asp:LinkButton runat="server" ID="LinkButton1" Text="Edit" CommandName="Edit" /><br /> <asp:LinkButton runat="server" ID="LinkButton2" Text="Delete" CommandName="Delete" OnClientClick='return confirm("Are you sure you want to delete this item?");'/> </ItemTemplate> <EditItemTemplate> <asp:LinkButton runat="server" ID="LinkButton1" Text="Update" CommandName="Update" /><br /> <asp:LinkButton runat="server" ID="LinkButton2" Text="Cancel" CommandName="Cancel" CausesValidation="false" /> </EditItemTemplate> </telerik:GridTemplateColumn> <%--<telerik:GridEditCommandColumn /> <telerik:GridButtonColumn CommandName="Delete" Text="Delete" ConfirmText="Are you sure you want to delete this item?" />--%> </Columns> Note I've commented out the telerik command columns (wich work fine) to get the command buttons in the same column (and use icons removed for simplification)
Note: the error only occurs when clicking Update during Insert, and just by changing button the the two telerik buttons commented out the error goes away :(
Regards
Steve Naughton (MVP)
