.NET / EverLive - Sending updates from a Grid

3 posts, 0 answers
  1. Sam
    Sam avatar
    14 posts
    Member since:
    Apr 2011

    Posted 26 Sep 2013 Link to this post


    I have created a grid and bound it to data as follows:

    I created an Action data class, then:

    var actionData = await app.WorkWith().Data<Action>().GetAll().ExecuteAsync();
    radGridView1.DataSource = actionData;

    This populates the grid, however I want to commit changes back to Everlive.

    I'm trying to use:

    Action updateAction = new Action();
    await app.WorkWith().Data<Action>().Update(updateAction).ExecuteAsync();

    However this is not working, I'm sure I am missing something obvious here.

    Thanks for any assistance, 

  2. Lyubomir Dokov
    Lyubomir Dokov avatar
    44 posts

    Posted 01 Oct 2013 Link to this post

    Hi Sam,

    The code you have seems correct.

    What could be the problem:
    The Update() method only updates changed properties for the object you supply. For the SDK to know which properties are changed, you must do special implementation in the property setters. You can see it in the Documentation, but basically, you need to do something like this:
    public DateTime PublicationDate
            return this.publicationDate;
            this.publicationDate = value;

    For more information, please refer to the Updating section in our .NET SDK documentation.

    Lyubomir Dokov
    You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
  3. Sam
    Sam avatar
    14 posts
    Member since:
    Apr 2011

    Posted 01 Oct 2013 Link to this post

    Thank you Lyubomir,

    I will try that and report back,

    Many thanks
Back to Top