Skip to main content
sravanthgoudk280
August 13, 2021
Solved

Editable Grid with Selection

  • August 13, 2021
  • 2 replies
  • 3 views

Hi Folks,

I have a use case, say I have editable grid with 2 columns column 1 and column 2, user should see existing data in read-only format and when ever user clicks on add new row link in the grid, new row should be appended to existing list and editable.

Consider I have below table structure is similar to my use case

Column 1 Column 2 Check box
Key1 Value1
Key1 Value2
Key1 Value3
Key2 Value4
Key3 Value5
Key4 Value6

In the above table Key1 has there different values, user should have a option to decide which value should be returned out/ mapped to that key1, to achieve this I have enabled section option in editable gird. When I do check on one row to map default value for key1, all the rows were selecting by default though only one should have been selected.

Can anyone suggest me how to achieve selection in editable grid?
What would be the reason for selecting all rows instead of only one row in above scenario?

Thanks in advance [emoticon:c4563cd7d5574777a71c318021cbbcc8]

Best answer by peter.lewis

Can you share the code you tried that was causing all rows to be selected? In general the important thing to know about defining selection in an editable grid is that you must define an identifier for each row in the grid so you can determine which row is selected. Although this recipe isn't exactly what you're doing, it gives you an idea of how to use selection in an editable grid: docs.appian.com/.../recipe-use-selection-for-bulk-actions-in-an-inline-editable-grid.html

2 replies

peter.lewis
Participating Frequently
August 13, 2021

Can you share the code you tried that was causing all rows to be selected? In general the important thing to know about defining selection in an editable grid is that you must define an identifier for each row in the grid so you can determine which row is selected. Although this recipe isn't exactly what you're doing, it gives you an idea of how to use selection in an editable grid: docs.appian.com/.../recipe-use-selection-for-bulk-actions-in-an-inline-editable-grid.html

sravanthgoudk280
August 13, 2021

Yes your correct [mention:6b9f80ff18f9420082d13ef2d5121d56:e9ed411860ed4f2ba0265705b8793d05], in an editable grid we must define an identifier for each row, as I have not defined earlier, all the rows were selected. if we implement identifier the issue will resolve. Thank you for the help [emoticon:c4563cd7d5574777a71c318021cbbcc8]