15
Views
4
Comments
Data grid with editing and deletion option + show dropdown values as text

Hello,


How can I add an icon for editing and an icon for deleting in the data grid? 


My second question is, the values of a dropdown list are shown as numbers and not as text. How can I solve this problem? 

(see oml below).


Thanks in advance 



TestAppAlokla.oml
2025-12-04 09-01-03
Kiet Phan
Champion

Hi @Mahmoud Alokla
For your second question. 

To show dropdown column on datagrid. You need to add Dropdown widget into GridColumnPlaceHolder like below.

Step1:

Step2:

Create a Data Action to get the dropdown data from your (static) Entity.

This DataAction has Output with the DropdownOption List type.

Inside the DataAction, you query data by Aggregate, and Assign the Result to the Output. (and mapping is needed)

Step3: Pass that List from DataAction into the Column

And the Result will be like this:

UserImage.jpg
Mahmoud Alokla

Hi @Kiet Phan, thanks for oyur respond. But i want just to show a text not a dropdown list

2025-12-04 09-01-03
Kiet Phan
Champion

@Mahmoud Alokla 

Okay, there are two ways you can do,

First one:

Use the method that i mentioned above and set the AllowEdit = False to it

Second one:

Drag the Department Static entity into the Aggregate, this will help you include the Department Label inside the result data. 

And then you Add a TextColumn widget into DataGrid with the binding name "Department.Label". It will help you show the Label of Static Entity.

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