[CLOSED] Need to update a grid cell, from code behind, without reloading store

  1. #1

    [CLOSED] Need to update a grid cell, from code behind, without reloading store

    Hello

    I have a grid attached to a store. In this grid, I have a decimal cell which content can be modified in my interface (it's a command grid linked to a command detail grid). If command detail lines price or quantity changes, in command detail grid, I want to upgrade command value cell in the first grid, but without reloading the store.

    is there a way to achieve that, from code behind?
    Last edited by geoffrey.mcgill; Feb 17, 2014 at 2:32 PM. Reason: [CLOSED]
  2. #2
    Hi @feanor91,

    It looks you need the following:
    record.set("fieldName", "new value");
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi @feanor91,

    It looks you need the following:
    record.set("fieldName", "new value");
    Thought so. I manage to find that thread : http://forums.ext.net/showthread.php...set-cell-value

    I'm trying that right now.

    Edit:

    After diging a lot, it works.

    Here the solution I found based on thread above
                gridName.AddScript("App.gridName.store.getAt(" + RecordIndex + ").set('FieldName" + NewValueField + ");")
    RecordIndex is passed through ExtraParams
    Last edited by feanor91; Feb 17, 2014 at 1:17 PM.
  4. #4
    If you have a reference to a Store, it can looks easier:
    this.Store1.GetAt(RecordIndex).Set("fieldName", "value");
  5. #5
    I haven't, I only have rows selected from my 2 grids.

Similar Threads

  1. Replies: 1
    Last Post: Dec 22, 2011, 6:17 AM
  2. [CLOSED] Update grid cell value without store.reload()
    By pj_martins in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 02, 2011, 3:54 PM
  3. Replies: 1
    Last Post: Oct 19, 2011, 7:14 AM
  4. Replies: 2
    Last Post: Jun 14, 2010, 1:34 PM
  5. Reloading tree panel from code-behind
    By jpbelli in forum 1.x Help
    Replies: 1
    Last Post: Jan 29, 2009, 10:33 AM

Posting Permissions