How to add multiple components dynamically using RenderFragment #24440
Replies: 3 comments
-
I am also encountering the same. Correct me where I am wrong. Any solution would be helpful. |
Beta Was this translation helpful? Give feedback.
-
You are not adding new components on click but overwriting the same variable over and over.
or
I haven't run this code. |
Beta Was this translation helpful? Give feedback.
-
If you are not exercising dynamic builders there is a much simpler solution to "add components on button click".
|
Beta Was this translation helpful? Give feedback.
-
Hi There!!!
I used RenderFragment to add dynamic components in the click of a button. Now, components rendered just once when I click on the button and i want to add the components on every click. Please help me sort out this issue.
Here is the code I tested.
Beta Was this translation helpful? Give feedback.
All reactions