RadTabStrip/RadMultiPage update parent when change inside RadPageView

1 Answer 116 Views
Ajax AjaxPanel DataForm PageLayout TabStrip
Matthew
Top achievements
Rank 1
Matthew asked on 06 Jun 2022, 06:14 PM

I have a main page with RadTabStrip/RadMultiPage setup. I'd like to trigger an update to a portion of that page when user makes a change in a RadPageView. So on my main page I have a portion that is a summary with datasource and form and numbers need to update as people make changes to various sub-pages.

On each of those RadPageView I have aspx pages with RadForms with (edit/update/cancel buttons). I'd also like to catch if a user tries to change tabs, navigate away from the page, or close with the X on the upper right browser if they are in edit mode on a RadPageView aspx page.

Any assistance would be greatly appreciated.

1 Answer, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 10 Jun 2022, 11:19 AM

Hi Matthew,

For convenience and visibility from the community, I am sharing here my reply from the internal support communication on the topic.

Assuming you are using a ContentUrl for the PageViews, you have an iframe with the page in each of the PageViews. That means you would need to implement a Parent/Child communication similar to how it is recommended for the RadWindow with NavigateUrl (where iframes are created as well):

 

In general, you can create a few functions in the parent page that will deal with the update and the child pages would just call these functions when needed.

As for the navigate away, you can use the beforeunload event and inform the user of any unsaved changes for example:

The tab changes could also be detected in various ways:

Regards,
Peter Milchev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Ajax AjaxPanel DataForm PageLayout TabStrip
Asked by
Matthew
Top achievements
Rank 1
Answers by
Peter Milchev
Telerik team
Share this question
or