I have a datatable with a column that uses a "text" editor. I have a button at the bottom of the grid that users will click when finished editing all rows in the column. I then attempt to loop through the rows in the datatable's data object to make sure the users filled in a valid entry for each row.
However - whatever row the user last modified does not match what's in the datatables data object the first time the button is clicked. It editor does not appear to get the underlying data updated until the second time the button is clicked.
What datatable method can I use to force the editor to commit the datatable editors text to the underlying data immediately. I have tried
$$("data").editstop; $$("data").validateEditor; $$("data").validate; $$("data").refresh;
as well as setting focus to another element on the page. Nothing gets that entry to appear in the underlying data on first button click.