Grid panel: inserting data via store and objectdatasource fails

Page 2 of 2 FirstFirst 12
  1. #11
    ID will be passed automatically. Just do not forget to define IDProperty
  2. #12
    Rebuilt it from scratch. I indeed do not need the ID in the model and in InsertParameters. And it works, almost....

    When I hit Save, I receive the following message:
    Status Code: 200Status Text: BADRESPONSE: Syntax error
    {serviceResponse:{success:false,message:"System.Ex ception: Sequence contains no matching element ---> System.InvalidOperationException: Sequence contains no matching element\r\n at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate)\r\n at Ext.Net.Store.InsertCallback(Int32 recordsAffected, Exception exception) in C:\\Users\\Geoffrey McGill\\Documents\\Visual Studio 2010\\Projects\\Ext.NET\\v2\\Ext.Net\\Ext\\Data\\S tore.cs:line 1053\r\n at System.Web.UI.DataSourceView.Insert(IDictionary values, ....


    I am not sure how to address it.

    Despite the message, the record is added / updated.
  3. #13
    Yes, there are few problems.
    At this moment, you can use the following approach (manually call methods from your object data source)
    https://examples2.ext.net/#/GridPane...reCustomLogic/
    https://examples2.ext.net/#/GridPane...s/StoreEvents/

    Please note that ObjectDataSource should not be used with those samples
  4. #14
    Thanks for the heads-up, Vladimir. I will it give it a try.

    How do I find out when the problems with the ObjectDataSource have been resolved?
    I just purchased a license including Premium Support Subscription.
  5. #15
    I added a fix to SVN (2.1 branch, http://svn.ext.net/premium/branches/2.1)
    If you update from SVN then all should works correctly
  6. #16
    Quote Originally Posted by Vladimir View Post
    I added a fix to SVN (2.1 branch, http://svn.ext.net/premium/branches/2.1)
    If you update from SVN then all should works correctly
    Thanks Vladimir. Would you be so kind and let me know what file(s) I need to download?

    Do I download the all files in http://svn.ext.net/premium/branches/...Ext.Net/extnet ?

    Thanks
    Manni
  7. #17
    You have to download whole 2.1 branch
    Open solution file and rebuild all projects, after that use new assemblies in your application
  8. #18
    Your changes solved the issue.

    Thank you very much Vladimir!
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 1
    Last Post: Mar 08, 2012, 2:52 PM
  2. Replies: 1
    Last Post: Oct 03, 2011, 10:51 AM
  3. Changing Grid Panel Data Store
    By anand in forum 1.x Help
    Replies: 4
    Last Post: May 14, 2011, 8:07 PM
  4. Retieving Data from data base in the Grid Panel
    By Rakeshkumar.a in forum 1.x Help
    Replies: 0
    Last Post: Oct 13, 2010, 6:18 AM
  5. [CLOSED] ObjectDataSource with masterpage fails on last nights svn
    By pkellner in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 26, 2008, 3:52 PM

Tags for this Thread

Posting Permissions