hharrington
(Hharrington)
September 26, 2023, 2:30pm
22
I hear what your saying
“In the logic below you assign an empty list to a property in Page Data. That causes a re-render event. After that you modify the list. Yes, the list will be updated, however, the UI will not know that it got updated” but this code
produces this result
so it was updated and got re-rendered
mark-piller
(Mark Piller)
September 26, 2023, 2:32pm
23
Now try to do it inside of a Cell Clicked
event for another data grid.
hharrington
(Hharrington)
September 26, 2023, 3:07pm
24
the code above is part of a cell click event of a data grid and it does update a different data grid.
I may have misunderstood what you meant.
H
mark-piller
(Mark Piller)
September 26, 2023, 3:11pm
25
It must be a timing issue in addition to what I was describing.
I still have not received an answer from you if you checked my fixes in the marktest
page. Did you?
hharrington
(Hharrington)
September 26, 2023, 3:24pm
26
Yes, I took a look at the marktest page. you get around the issue by building the list in a variable and then storing the var in a pagedata property.
I implemented this on in my app and it works. I’m trying to understand what’s going on under the covers so I can make better design choices.
H
mark-piller
(Mark Piller)
September 26, 2023, 3:30pm
27
A better practice would be to minimize the changes in PageData and avoid using it as an intermediate storage.
hharrington
(Hharrington)
September 26, 2023, 3:52pm
28
Mark,
I have totally learned that lesson
H