So I have this dataset with one of the fields “is_selected” and I have a sort on this field to have the checked at the top of the table, it’s a collection list btw.
Now when I check a random checkbox, it updates the “is_selected” of the data in this row and this one goes to the top. Great.
BUT the row that I checked, stays checked. So the one that went to the top is also checked and the exact row that I checked is also checked, while the value of that row’s is_selected = false.
How can I force the checkbox to check itself and it’s data to make sure it should be checked true or false…?
Also on deselecting, the one that I deselect jump to the bottom but on that specific row it stays uncheked (while that row’s data is now one with is_selected=true).
As you can see in the screenshot, the “is_selected” value for exactly this row is false but the “preview” shows the checkbox checked. So to rephrase the question; how to let the checkbox check if it has the right value?
Hey @Mael , I’m sorry but it didn’t work. I gave the flexbox with the checkbox an attribute id and set it to a unique value of that row. Also tried with the checkbox itself giving it an attribute id. Same thing. Any tips?
I was not able to resolve this. But looking at it again now. @Mael can you explain maybe which element exactly needs the ID? I tried adding the ID to the entire row, but also to just the checkbox or the flexbox around the checkbox. But no success just yet.
Then clicking Career Bridge, will bring Career Bridge to the top, but also keep the checkbox I just clicked, selected at the same row. So now we have 2 checkboxes selected. The bottom one should not be selected as I just wanted Career Bridge to be selected.