246
Views
2
Comments
Solved
[OutSystems Data Grid] How to create cascading dropdown on DataGrid?
outsystems-data-grid
Reactive icon
Forge asset by OutSystems
Application Type
Reactive
Service Studio Version
11.54.16 (Build 62588)

I want to create drop down list on DataGrid like this;

Item column's dropdown is based on Group column's value.

I understand that when I change Group column's value, Item column's dropdown list must refresh on the OnChangeAction.

And I think ParentId can be used for, but I don't know how to use.

What better way to solve this problem?

2020-11-05 04-47-48
Nghia Hoang
Solution

Hi, 

Basically, the "ParentId" in the screenshot is the Id of the Parent Item of Regions Item from Database, that means when you query the Regions list, beside REGION_NM and REGION_CD, you should query the column that store parent Id of that Region and fill that Column name in "ParentId".

More over,  You need to set value for "ParentBinding" attribute at Child Dropdown column, please refer image below (which is capture from Data Grid Sample Reactive module from Forge):


P.S: Further more, you can download from forge module named "Data Grid Sample Reactive" and refer to example in there. 

UserImage.jpg
Kaori Ouchi

Dear Nghia Hoang

Thank you for your advice, now it works!

Best regards. 

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