Question
Infosys Ltd
Infosys Ltd
IN
Infosys Ltd
Posted: Oct 23, 2024
Last activity: Apr 23, 2025
Last activity: 23 Apr 2025 6:17 EDT
Disabling the row reordering in the table layout conditionally.
I have a requirement to disable a row ordering read-only based on a when condition based on client requirements. Please refer to the below attachment. In the below attachment, the sign 'tick' and 'Star' rows need a row reordering disabled or read-only always.
***Edited by Moderator Marije to add Capability tags***
To see attachments, please log in.
@SatyaHariPrasadM
⚠ This is a GenAI-powered tool. All generated answers require validation against the provided references.
Based on the screenshot you provided, I can see you need to implement conditional row reordering in an approvers table where certain rows (those with checkmark/tick and star icons) should not be reorderable. Here's how you can implement this:
Solution Approach
You'll need to modify the drag-and-drop functionality using a When rule to conditionally disable reordering for specific rows. Here's a step-by-step implementation guide:
Step 1: Identify the Property for Icon Status
First, you need to identify which property in your data model indicates whether a row has a tick or star icon. Based on your screenshot, this appears to be a status indicator in the first column. This property might be named something like
pyStatusIcon,approverStatus, or similar.@SatyaHariPrasadM
⚠ This is a GenAI-powered tool. All generated answers require validation against the provided references.
Based on the screenshot you provided, I can see you need to implement conditional row reordering in an approvers table where certain rows (those with checkmark/tick and star icons) should not be reorderable. Here's how you can implement this:
Solution Approach
You'll need to modify the drag-and-drop functionality using a When rule to conditionally disable reordering for specific rows. Here's a step-by-step implementation guide:
Step 1: Identify the Property for Icon Status
First, you need to identify which property in your data model indicates whether a row has a tick or star icon. Based on your screenshot, this appears to be a status indicator in the first column. This property might be named something like
pyStatusIcon,approverStatus, or similar.Step 2: Create a When Rule for Conditional Reordering
For example, if your property is called
approverStatus, your condition might look like:Step 3: Modify the Drag and Drop Rule
pyDragDropCategorizeColumnsrule (or create a custom version in your application)This will disable drag and drop for rows where your When rule returns true (i.e., rows with tick or star icons).
Step 4: Alternative Approach Using Row-Level Properties
If you prefer to implement this directly in the table configuration:
Implementation Notes
If you need to identify the exact property that stores the tick/star status in your specific implementation, you can:
References: