The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Update DataGrid
Posted: 17 Sep 09 9:39 AM
|
Hi
I am currently editing the Add Edit Sales Order form. At the moment if I edit the quantity the extended price only gets calculated once you click on a different row (on the data grid). What I would like to happen is to have this update once the focus leaves the datagrid. i.e. edit a text box or click cmdOK etc.
Regards Andrew James |
|
|
|
Re: Update DataGrid
Posted: 18 Sep 09 8:12 AM
|
Just a guess, but you should be able to move the code for this from the grid's OnChangeNode to the OnEdited or OnEditedRow events. |
|
|
|
Re: Update DataGrid
Posted: 18 Sep 09 8:21 AM
|
The OnChangeNode event is not being used on this datagrid. And the code that is in the edited event is only run when you click elsewhere on the datagrid. If I change the quantity and leave the datagrid nothing happens, I have to click on a seperate record for it to update. Im currently on v7.2 does anyone know if 7.5 has updates the datagrid so that there is an onkeypress event? |
|
|
|
Re: Update DataGrid
Posted: 18 Sep 09 8:53 AM
|
I see now what you mean. It is still behaving this way in 7.5 and, no there are no changes to the data grids control to expose a key press event. |
|
|
|
Re: Update DataGrid
Posted: 18 Sep 09 8:59 AM
|
BTW, this behavior is not normal for the SLX grids but is due to the fact that this screen uses a disconnected recordset to display in the grid. Apparently the events run slightly differently in the grid when the grid is bound in this fashion. (If you look at the opportunity products grid it behaves the way you want. This is a connected recordset.) |
|
|
|
Re: Update DataGrid
Posted: 18 Sep 09 10:08 AM
|
Thanks Kris, just got to make them work the same now |
|
|
|