xOnBefore_Edit method

dynamic xOnBefore_Edit(
  1. XCol xCol,
  2. T item
)

Implementation

xOnBefore_Edit(XCol xCol, T item) async {
  if (titleDialog_liProps.isEmpty) {
    titleDialog_EditCell = xCol.colCaption;
  } else {
    for (var i in titleDialog_liProps) {
      titleDialog_EditCell = " " + i.col_Label;
    }
  }

  if ((isAndroid() || isIOS()) && widget.modePage_Active) {
    var x = await xEntryDialog(titleDialog_EditCell, item[xCol.colKey], xCol);
    if (x != null) {
      itemInEdit_Clone[xCol.colKey] = x;
    }
  }
  setState(() {
    enteredInEditOnCell = false;
    btnUpdateChangesShow = false;
  });
  return () {};
}