Command (Event) when swipe on last page

Hi,

I am using the rotator as a wizard and dynamically adding pages depending on what the user selected on the current page.

The rotator has a SelectedIndexChanged event but this only fires if there is a page to go to. Because I am adding pages depending on the user inputs I don't have a page to go to yet.

A wokaround would be to add a dummy page at the end and then when the event fires then replace it with the real page.

Is there a better way to achieve this?

Thanks

Mark.

1 Reply

PA Paul Anderson S Syncfusion Team July 27, 2018 12:37 PM UTC

Hi Mark, 
 
Thank you for using Syncfusion products. 
 
The behavior of SelectionChanged event to get fired is when it switches from one item to another item. So, if there is a page/item available for navigation it will get switched calling the SelectionChanged event. 
 
Based on your requirement it is needed to have a dummy page and the content of the page can be updated dynamically on switching handling the SelectionChanged event and you have achieved that correctly. 
 
Please let us know if you have any concerns. 
 
Regards, 
Paul Anderson 


Loader.
Up arrow icon