Reload only one updated row

Hi,

Exist possibility to reload only updated row ? I’m using server side and dataprocesor related to grid_connector . The problem that in MySql database are trigers and updating field triger update another field of the row . In grid I’m seeing that the value which I updated changed , but other , related to db triger - not . Ok , I know clearAndLoad or clearAll and load methods . And i tried them . But this methods refresh all grid and I must to return to previuos position …

Suite Pro build 110713.

With best regards !

OK , reload one row is impossible …

Other question - how trully select the same edited row ? After grid reload ?

Regards !

You can get the selection with getSelectedRowId() method:
docs.dhtmlx.com/doku.php?id=dhtm … ectedrowid

and then you can select the saved row with selectRowById() method:
docs.dhtmlx.com/doku.php?id=dhtm … ectrowbyid

Note: please, make sure that the needed row is loaded before it’s selecting.

I know that , thanks . The problem is select the row after reload :

      myDp.attachEvent( "onAfterUpdate", function()
      {
         var row_id = mygrid.getSelectedId();
         var rInd   = mygrid.getRowIndex( row_id )
         mygrid.clearAll();
         mygrid.load( "uzs1.php?lauku_eile=" + slc_fld );
         mygrid.selectRowById( row_id );
      });

This isn’t working … But maybe it’s needful to use other event or event on grid , not data processor ? Thanks …

myDp.attachEvent( “onAfterUpdate”, function()
{
var row_id = mygrid.[b]getSelectedRowId/b;
var rInd = mygrid.getRowIndex( row_id )
mygrid.clearAll();
mygrid.load( “uzs1.php?lauku_eile=” + slc_fld );
mygrid.selectRowById( row_id );
});

Did change to getSelectedRowId() . The same …

Please, try to call selectRowById() after the data loading is complete:

[code] myDp.attachEvent( “onAfterUpdate”, function()
{
var row_id = mygrid.getSelectedId();
var rInd = mygrid.getRowIndex( row_id )
mygrid.clearAll();
mygrid.load( “uzs1.php?lauku_eile=” + slc_fld, function(){
mygrid.selectRowById( row_id );
});

  });[/code]

Woww ! :slight_smile: Thanks , that worked . Fine !
Regards !