Two SfPopups with entry field

Hi,

I have a Page that has two buttons and clicking on each should show an SfPopup with an Entry field where user can enter some input. Each popup should have accept and decline button. I would like to initialize and call these SfPopups from the viewmodel. Can you please provide me a sample project that does this

Thanks,
Madhu

3 Replies

KK Karthikraja Kalaimani Syncfusion Team April 27, 2020 11:59 AM UTC

 
Hi Madhu,

We have prepared a sample for your requirement. In the sample we have created Popup as a Page with two button and one entry field. This is popup is called from viewModel. For more details please refer to the below attached sample.

Sample link : https://www.syncfusion.com/downloads/support/directtrac/general/ze/Popup_Demo457739081.zip

Regards,
Karthik Raja 



MG Madhu Ganesh April 27, 2020 02:02 PM UTC

Please read my question again. I have a page which has two buttons, Button X and Button Y. When I click on Button X, I would like to open up SfPopup A. When I click on Button Y, I would like to open up SfPopup B. SfPopup A has an Entry field where I can enter patient name and SfPopup B has an entry field where I can enter patient age. 

I dont want to just call call the popup from the viewmodel. I would like to create both popups in the viewmodel. Is that possible?

Similar to this ticket: https://www.syncfusion.com/forums/138728/add-more-then-one-popup-to-the-page

But in this ticket, the popups have no entry field. I would like the popups in my page to have an entry field

Thanks,
Madhu


KK Karthikraja Kalaimani Syncfusion Team April 28, 2020 07:09 AM UTC

Hi Madhu,

We have prepared a sample for your requirements. In the sample, we have created a two SfPopupLayout as page and 1st popup is opened with two-button with one entry field on clicking of ButtonX and 2nd popup is opened with two-button with one entry field on Clicking of ButtonY. For more details please refer to the below-attached sample.

Sample link :  https://www.syncfusion.com/downloads/support/directtrac/general/ze/Popup_Demo1197002126.zip


 This below UG helps to customize the Header,Content and Footer of the PopupView.
https://help.syncfusion.com/xamarin/popup/layout-customizations

Regards,
Karthik Raja 


Loader.
Up arrow icon