[CLOSED] How I update one row of gridPanel only? gridPanel datasource is a Json webservice.

  1. #1

    [CLOSED] How I update one row of gridPanel only? gridPanel datasource is a Json webservice.

    Hi!

    Hi have a gridPanel in my main Page and data source of this gridPanel is a webservice.
    When I dblclick in row of gridPanel, I open a window with a aspx page within.
    This aspx page save the changes directly in my database.
    When I return to main page, I 'm refresh all records in gridPanel... I wish reload only the row corresponding the record in database.

    There are any example to do this?
    Last edited by Daniil; Apr 16, 2012 at 12:09 PM. Reason: [CLOSED]
  2. #2
    Hi,

    You could return only changed record values and update it client side something like this:

    Example
    var r = App.GridPanel1.getStore().getAt(0);
    r.beginEdit();
    r.set("test1", "new value 1");
    r.set("test2", "new value 2");
    r.set("test3", "new value 3");
    r.endEdit();
    r.commit();
  3. #3
    Hi Daniil...

    Thanks for your answer... I will try do this...

    Thanks again.

Similar Threads

  1. Replies: 12
    Last Post: Apr 04, 2012, 11:55 AM
  2. Replies: 5
    Last Post: Feb 01, 2012, 11:54 AM
  3. Replies: 1
    Last Post: Jul 22, 2009, 2:10 PM
  4. How to Update the GridPanel data to the DataSource
    By animalisme in forum 1.x Help
    Replies: 2
    Last Post: Jun 22, 2009, 3:09 AM
  5. how to update xml datasource in GridPanel?
    By bruce in forum 1.x Help
    Replies: 2
    Last Post: Oct 30, 2008, 1:08 PM

Posting Permissions