Skip to content

How to use IListState with ItemSource-DataTemplates within MVUX correctly? #2392

Answered by dr1rrb
AuderixDev asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @AuderixDev thanks for the question.

Actually we are not supporting "nested" bindable models. The idea is more to expose an immutable model and create a new instance of that model on each update (including for lists). You can get more info off the reason here: https://platform.uno/docs/articles/external/uno.extensions/doc/Learn/Mvux/WorkingWithRecords.html.

In your case, I was about to recommend you to use the selection operator https://platform.uno/docs/articles/external/uno.extensions/doc/Learn/Mvux/Advanced/Selection.html, however I noticed that the RadioButtons does not supports the ISelectionInfo on which we rely for this. So in your case I would simply use a 2-way binding on the S…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by AuderixDev
Comment options

You must be logged in to vote
2 replies
@dr1rrb
Comment options

@dr1rrb
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants