If there exists any possibility to make ajax reload of one PageView from RadMultiPage without reloading content of others pages ?
For example.
I'd like to load controls to RadMultiPage only after user select the corresponding Tab. My page is look like browser with many pages. Each PageView contains <frame>. But after new page loads content of all other's pages reloading :(.
For example.
I'd like to load controls to RadMultiPage only after user select the corresponding Tab. My page is look like browser with many pages. Each PageView contains <frame>. But after new page loads content of all other's pages reloading :(.
6 Answers, 1 is accepted
0
Ricky Harlow
Top achievements
Rank 1
answered on 19 Apr 2010, 05:18 PM
Did you ever find and answer to this?
I am having the exact same issue.
I set "
I am having the exact same issue.
I set "
RenderSelectedPageOnly=true" but now if I go back to it is blank. It will only render once.
0
Hello there,
Please check our online example here, note that the tabstrip is subscribed to OnClientTabSelecting event and the postback is prevented when the pageview is already loaded.
Greetings,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Please check our online example here, note that the tabstrip is subscribed to OnClientTabSelecting event and the postback is prevented when the pageview is already loaded.
Greetings,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
KVEE
Top achievements
Rank 1
answered on 03 Aug 2013, 10:27 PM
Hi Telerik team,
I have a requirement to auto-save data of current tab whenever tabs are switched so I do need to trigger the post-back of the page to save data first. The example here includes the onTabSelecting which avoids post-back for pages that already loads and this doesn't exactly work for me. Can you suggest something? I've tried letting it post-back and the page automatically calls the RadMultiPage1_PageViewCreated method. I'm fine with this but it has a problem if I click tab 1, 3, 4, then 2 (not in order of the tabs), then the reconstruction of the pages behaves incorrectly. Pls help post an example where a post-back occurs on tab click yet still be able to support dynamic pageviews.
Thanks.
I have a requirement to auto-save data of current tab whenever tabs are switched so I do need to trigger the post-back of the page to save data first. The example here includes the onTabSelecting which avoids post-back for pages that already loads and this doesn't exactly work for me. Can you suggest something? I've tried letting it post-back and the page automatically calls the RadMultiPage1_PageViewCreated method. I'm fine with this but it has a problem if I click tab 1, 3, 4, then 2 (not in order of the tabs), then the reconstruction of the pages behaves incorrectly. Pls help post an example where a post-back occurs on tab click yet still be able to support dynamic pageviews.
Thanks.
0
Hello KVEE,
You could still use the same example, but with a slight change. In order to prevent a PostBack from firing, the example uses a custom logic, implemented in the OnTabSelecting :
I would suggest you to delete the client-side event OnTabSelecting, in order to assure that each time certain tab is clicked - a PostBack will occur. Please note that you should alter just one more thing in the example. In the RadTabStrip1_TabClick server-side event, where the adding of the newly created PageView is implemented, you should make sure that there isn't any PageView already associated with the currently selected Tab. Please consider the following approach:
Regards,
Nencho
Telerik
You could still use the same example, but with a slight change. In order to prevent a PostBack from firing, the example uses a custom logic, implemented in the OnTabSelecting :
function
onTabSelecting(sender, args) {
if
(args.get_tab().get_pageViewID()) {
args.get_tab().set_postBack(
false
);
}
}
I would suggest you to delete the client-side event OnTabSelecting, in order to assure that each time certain tab is clicked - a PostBack will occur. Please note that you should alter just one more thing in the example. In the RadTabStrip1_TabClick server-side event, where the adding of the newly created PageView is implemented, you should make sure that there isn't any PageView already associated with the currently selected Tab. Please consider the following approach:
protected
void
RadTabStrip1_TabClick(
object
sender, RadTabStripEventArgs e)
{
if
(RadTabStrip1.SelectedTab.PageViewID ==
string
.Empty)
{
AddPageView(e.Tab);
}
e.Tab.PageView.Selected =
true
;
}
Regards,
Nencho
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Terry
Top achievements
Rank 1
answered on 25 May 2016, 07:31 AM
Hi Nencho,
I have a similar scenario as above where I need to reload/refresh each tab/page view. If the content of one page view changes or gets updated because of a user action, the content of another page view also needs to get updated to reflect the change. I tried your suggestion above but it is not working for me. I get a null reference exception at the "e.Tab.PageView.Selected = true;" line. Can you suggest another approach where I can get the content of each page view to reload upon a tab click.
0
Hello Terry,
Regarding the issue that you described, with the null reference error thrown - this would suggest that no PageView is associated with the Tab's content that you aim to refresh. In other words, there is not content to refresh. I would suggest you to submit a support ticket, along with a runnable sample attached, demonstrating your current implementation and inability to refresh the PageView's content. Thus, we will be able to locally observe it and suggest you the proper implementation.
Regards,
Nencho
Telerik
Regarding the issue that you described, with the null reference error thrown - this would suggest that no PageView is associated with the Tab's content that you aim to refresh. In other words, there is not content to refresh. I would suggest you to submit a support ticket, along with a runnable sample attached, demonstrating your current implementation and inability to refresh the PageView's content. Thus, we will be able to locally observe it and suggest you the proper implementation.
Regards,
Nencho
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.