Posted: 28 Nov 2017 12:45 EST Last activity: 30 Nov 2017 5:05 EST
Repeat Grid Refresh
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.
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.
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?
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)