Skip to main content
Question

Acumatica Modern UI – RowSelected Event Not Triggering When Adding a New Row

  • September 11, 2026
  • 1 reply
  • 15 views

Hi Acumatica Community,

I am facing an issue with Acumatica Modern UI customization.

I have a custom screen where I need to perform some UI/business logic when a new row is added to a grid. I have implemented the logic using the RowSelected event of the DAC.

The behavior is different between Classic UI and Modern UI:

  • In Classic UI, RowSelected is triggered as expected.
  • In Modern UI, when I click Add New Record and a new row is created, the expected RowSelected event is not triggered.
  • The event works in other scenarios, such as when selecting or navigating through existing records.

1 reply

Forum|alt.badge.img+5
  • Jr Varsity II
  • September 11, 2026

Hi ​@jchawda80 ,

This is a known behavioral difference between Classic UI and Modern UI in Acumatica. The root cause lies in how Modern UI handles new row initialization differently from Classic UI.

Why This Happens

In Classic UI, adding a new row triggers a full roundtrip to the server, which fires the complete event chain including RowSelected.

In Modern UI, new row creation is handled client-side first (optimistic rendering), so the server-side RowSelected event is not immediately fired after clicking "Add Row". The event fires later in the lifecycle — typically only when the user interacts with the row (e.g., selects a field) or saves.

Use RowInserting or RowInserted Instead

These events are reliably triggered in both UIs when a new row is being created:

protected void MyDAC_RowInserting(PXCache cache, PXRowInsertingEventArgs e)

{

MyDAC row = (MyDAC)e.Row;

if (row == null) return;

// Initialize defaults or apply business logic here

}

protected void MyDAC_RowInserted(PXCache cache, PXRowInsertedEventArgs e)

{

MyDAC row = (MyDAC)e.Row;

if (row == null) return;

// Logic after row is fully inserted

}

 

Hope above helps!!