CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Post cell data without press <Enter>

by MarcoRu » 07 Jun 2017 16:50

Hi,
we are having an issue on a Grid with GridProvider set to Cells_Provider. The cells of grid are editable and the last column of the grid is a button (FormatOptionsControl.ControlTemplate is set to a region with a buton on it).
grid.png



If the user is editing the column "Timeout attesa (min)" and after that push the button "Crea lotto" on the same row, I can't retrieve the data on the cell edited (in the example the value is 1).
We tryied with
Code: Select all
gridCreaLotti.JQGridProviderCells.Cell[4, gridCreaLotti.RowIndexForRowId[sGlobalRowID]].Value

but the returned value is "null".
How can we force to post data on button click? How we can retrive the data of the cell in edit mode?
You do not have the required permissions to view the files attached to this post.
MarcoRu
 
Posts: 41
Joined: 23 Sep 2014 16:39

by Jorge Sousa » 08 Jun 2017 10:00

hi

Did you tried with

Grid.JQGridOptions.OnAfterSaveCell?

Code: Select all
    {$IFDEF NODEF}{$REGION 'CGDevTools - Documentation'}{$ENDIF}
    ///   <summary>
    ///     applies only to a cell that is editable; this event fires after the
    ///     cell has been successfully saved. This is the ideal place to change
    ///     other content.
    ///   </summary>
    {$IFDEF NODEF}{$ENDREGION}{$ENDIF}
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by MarcoRu » 08 Jun 2017 11:28

Hi, yes I did. If I edit the cell and after that I push the button, the OnAfterSaveCell event is not triggered.
MarcoRu
 
Posts: 41
Joined: 23 Sep 2014 16:39

by Jorge Sousa » 08 Jun 2017 12:26

Hi

Can you send us a test case by email?

Since there are many options, we don't know how to advise.

t.i.a.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58


Return to JQGrid

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.