[Data Grid Reactive] ExternalEvents is not defined.
Forge component by Bruno Martinho
Application Type
Reactive

Hi, according to Does DataGrid support changeing the editable properties of a single, in order to solve this, I used a JS node in OnReady Event. However, after we updated the latest version, [ExternalEvents is not defined.] error occurred.

Could you help me solve this problem?

Kind regards.

6AEA6D138AF74941924D455BB889BFAC.png

Hello @He Caixia,

On your DataGridOnInitiliaze, you don't need to use the Subscribe. That Event OnInitialize from DataGrid that you marked with a border on the first image will do the Subscribe for you. All you need to do inside your JS block (second image) is the line of code:


const beginEdit = function(){...}
GridAPI.GridManager.GetGridById($parameters.GridWidgetId).provider.beginningEdit.addHandler(beginEdit);

Can you confirm if this works?

Best regards,

Tiago Pereira

Hello @He Caixia,

Thanks for bringing this subject to the discussion.

One of the new implementations that the new version (2.2.0) brought to the community was an OnInitialize event that can be accessed directly in the events of the Data Grid Block.

You can learn more about this event in our documentation.

Please let me know if that works for you.

Best regards,

Tiago Pereira 

I have used the OnInitialize method of datagrid and put the JS in OnInitialize, but it still throws an error message:[ExternalEvents is not defined.] 


Hello @He Caixia,

On your DataGridOnInitiliaze, you don't need to use the Subscribe. That Event OnInitialize from DataGrid that you marked with a border on the first image will do the Subscribe for you. All you need to do inside your JS block (second image) is the line of code:


const beginEdit = function(){...}
GridAPI.GridManager.GetGridById($parameters.GridWidgetId).provider.beginningEdit.addHandler(beginEdit);

Can you confirm if this works?

Best regards,

Tiago Pereira

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.