This is a migrated thread and some comments may be shown as answers.

RadMultiPage, RadTabStrip - All PageViews are being displayed after AJAX Postback - IE 9

3 Answers 81 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Brent Hetland
Top achievements
Rank 1
Brent Hetland asked on 01 May 2015, 04:22 PM

Hi,

I am using 2015.1.401.40 of your asp.net for ajax controls.

I have a very odd thing happening and am just looking for suggestions.

I have a user control that contains a RadTabStrip and a RadMultiPage and several other controls...  I have the SelectedIndex of the TabStrip set to 0, the first tab's Selected property is set to True, and the SelectedIndex of the MultiPage is set to 0.

This user control is in an ASP Panel that has its visible property set to False.  The user selects some things and then clicks a linkbutton at which time a RadAjaxManager postback occurs.

When the page loads, the first tab is selected, but all the content from all of the PageViews is displayed.

If I then click on each tab, only the content for each tab is displayed.  In other words, the RadMultiPage and TabStrip are working properly.

I use this same asp markup, same layout etc in a different user control, and it works.

If I set EnableAjax="false" in this control, it also works.

It also works fine in IE 10 and Chrome and Firefox.

One odd thing that I notice is that it seems as if the javascript / jQuery (or whatever that is supposed to run that hides the content of the other page views when the page loads) is NOT running.  In fact, no script on that user control is running.  To test that, I put a very basic jQuery(document).ready line of script in the user control that should run as soon as the page loads upon ajax postback, and it doesn't run.

Q.  Can you think of anything that could be causing something like this?

Q.  Do you have any troubleshooting ideas for me to try, or any properties I should be setting on any of the controls?  I've stripped the page down as much as I can, and it is still happening.

I so much dislike older versions of IE...

 

Thanks,

Brent

3 Answers, 1 is accepted

Sort by
0
Brent Hetland
Top achievements
Rank 1
answered on 01 May 2015, 04:30 PM

I have one more bit of information.

My first tab contains a RadGrid with Paging turned on.  If I Paging="false" on the grid, then that MultiPage / Tabs work correctly.

HOWEVER, on my 2nd tab I have a Telerik Report in PrintPreview mode and with paging set to False on the grid, the Telerik Report is not displaying correctly.  It is showing up well below the tab strip and not showing any content, even though the Report controls are there.  It is like the height of the report is zero or something...

0
Brent Hetland
Top achievements
Rank 1
answered on 04 May 2015, 07:52 PM

I want to reiterate one thing:

If I add a javascript / jQuery function that should run when the page loads (add the javascript to the user control that contains the tab, multipage, grid, reportviewer) the code does NOT run!  And I think that is the crux of the problem since it would seem that some code needs to run for the content to be hidden in the multipage, for the tabs that are not selected.

To test that, I added the jQuery UI Tabs plug in and the function that needs to run to setup that tabstrip also doesn't run on page load.

If I set EnableAJAX to false on the rad ajax manager, the tabstrip works however then the report doesn't run until I refresh it.

If I remove the Telerik ReportViewer, it works.

 

0
Konstantin Dikov
Telerik team
answered on 06 May 2015, 08:31 AM
Hello Brent,

Since it seems that you have a rather complex scenario, in order for us to be able to investigate the issue I would like to ask you to open a regular support ticket and provide a very simplified version of the scenario that you have, which replicates the exact same behavior. Thus we will be able to run the project locally and locate the root of the problem.


Best Regards,
Konstantin Dikov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Ajax
Asked by
Brent Hetland
Top achievements
Rank 1
Answers by
Brent Hetland
Top achievements
Rank 1
Konstantin Dikov
Telerik team
Share this question
or