In a section, there is one repeat Grid which contains a Check box. In the same section there is another repeat Grid. On click of check box in the first repeat Grid , the second repeat Grid should be editable or read-only depending upon selection.
Please help me on how to implement.
Thanks for the prompt response.
Actually, the second repeat Grid is placed in the section containing first repeat grid by a Section Include(2nd grid is in different section which is included in the section containing first grid).
On change action of the check box i selected Refresh This Section but the second repeat grid section is not getting refreshed. If I do Refresh other section then on Click of Check box the second repeat Grid turns editable and working as expected but If I uncheck the checkbox then the grid is not refreshed and it still coming as editable.
Refresh other section not working when I uncheck the checkbox.
Posted: 4 years ago
Posted: 28 Nov 2017 15:17 EST
Rett Hean (Rett_Hean_GCS)
Principal Software Solutions Engineer
If your design works when you check the checkbox, then I see no reason why it should not work if you uncheck it. This is assuming all your events are getting fired, and your editable conditions are being executed. Have you confirmed those data points?
Posted: 4 years ago
Posted: 29 Nov 2017 12:44 EST
Harish Aryasomayajula (AryaHarish)
I have resolved my issue. What I have done is,
First I used Refresh Other section(calling a DT which sets my parameters to true or false based on condition for editable and read-only grid) in on click action of checkbox - If I check the checkbox the other section refresh will make my grid editable (grid by default read-only.)
Next I used Refresh This section with a when condition in on click action of the checkbox. The solution that I have found is, when checking the check box the other section refresh works to make the grid editable and when we uncheck in order to make the grid read-only then refresh this section is needed with a when condition which checks the associated property is false or not(without when condition it's not working) along with other section refresh.
(It's kinda confusing but it worked and it's stable)