Unable to assign list to data grid

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
image

so it was updated and got re-rendered

Now try to do it inside of a Cell Clicked event for another data grid.

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

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?

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

A better practice would be to minimize the changes in PageData and avoid using it as an intermediate storage.

Mark,

I have totally learned that lesson :slight_smile:

H