Passing data to button in listView which open popup

I have a ListView in my Syncfusion MAUI project, where each button inside the ListView is associated with a specific material’s ID. I also have a separate popup that includes a label to display the material ID. Currently, I pass the ID and popup reference through multiple bindings, which correctly opens the popup and displays the ID for the first button click. However, when I open the popup through subsequent button clicks, the material ID is not displayed or updated correctly.


1 Reply

AF Anees Fathima Shajahan Syncfusion Team October 17, 2024 01:56 PM UTC

Hi Semahat,


We have created a sample using the ListView and Popup. When clicking the button within each ListView item, the popup displays the corresponding content from that item. Upon clicking the button, the current binding context data is stored in the SelectedItem property of the ViewModel, which is then bound to the popup content. This ensures that when you click the button for each item, the value in the SelectedItem property is updated accordingly, and the correct data is displayed inside the popup. We have attached the sample for your reference. If you have further questions, don’t hesitate to reach out!


Regards,

Anees Fathima.



Attachment: ListViewPopup_f0e8be77.zip

Loader.
Up arrow icon