Hi Jhonathan,
Thank You for using Syncfusion Products,
In last 16.1.0.37 version we are maintaining Root View parameter, so we need to pass the same instance for opening another popup.
But after feedbacks we have now removed that and currently different object instance can be created to show multiple pop up one above the other whenever required without passing a root view. This feature will be available in 2018 Volume 2 main release which is scheduled to rolled out at the last week of May.
Until then we recommend using single instance to create multiple popup just by altering the properties of the pop up.
Please refer the below code logics to call a popup from already opened popup using same instance
|
Code logics:
public class AcceptButtonCustomCommand : ICommand
{
SfPopupLayout popup;
public AcceptButtonCustomCommand(SfPopupLayout pop)
{
popup = pop;
}
public event EventHandler CanExecuteChanged;
public bool CanExecute(object parameter)
{
//Second Popup
popup.PopupView.HeaderTitle = "POPUP 2";
popup.PopupView.PopupStyle.HeaderBackgroundColor = Color.Red;
popup.PopupView.AcceptButtonText = "OK";
return false;
}
public void Execute(object parameter)
{
//Code
}
} |
Please refer the below link to handle the Accept Button command
We had prepared and attached working sample for your reference, you can download it from below link
Regards,
Suriya K