Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
7 replies
Subscribers
8 subscribers
Views
7870 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Disable specific row selection in GridField
prakharg
over 8 years ago
As per my understanding GridField sail component disable selection on all the rows in a grid. However I have a requirement where in I need to disable selection on a specific record in a grid. Is there anyway to achieve this?
OriginalPostID-250250
Discussion posts and replies are publicly visible
0
sikhivahans
over 8 years ago
@prakharg I don't think it's viable. Afaik, an alternate is to switch to Editable Grid, which I wouldn't recommend personally as it lacks sorting and pagination. Also, you may also think of adding a validation message in the paging grid which conveys to the user that the selection made is invalid.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
prakharg
over 8 years ago
Thanks you very much sikhivahans,
i will consult with the business for the options mentioned (Editable grid / Validation) and will take action accordingly.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
omere
over 8 years ago
instead of disabling the row in the Gridfield you can null out the gridSelection.selected in the saveInto if that certain condition is met.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
prakharg
over 8 years ago
Thanks Omere, I have opted for use of Grid layout instead Grid Field
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aneeshv713
over 7 years ago
in reply to
omere
How to null out the gridselection.selected in the saveInto? Can you send a code snippet?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Ravi Roshan
over 7 years ago
It is possible to disable the rows based on the condition. First you need to identify the rows that needs to be disabled and have to form an array. For example, suppose you have 5 rows and the row 1 & 3 needs to be disabled because the data is not eligible then you need to form an array say {N,E,N,E,E} (Where N - Not Eligible & E - Eligible), and pass this array one by one in the rowlayout rule and put a condition on disabled parameter as : if index = N, true, False.
Hope this may help you.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
codys
over 7 years ago
in reply to
sikhivahans
Actually you can easily sort and page an editable grid with custom paging controls.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel