I'm doing sharepoint development, and we have built a sharepoint page-layout template that contains a RadTabStrip with three tabs. In each of the three page views we have placed a web part zone.
The web part I am building now uses an UpdatePanel and a Timer to regularly refresh data that is being displayed to the user. When I drop this web part onto the default page layout (no TabStrips), the web part behaves perfectly. When I drop that part into any zone on the page that uses a layout with a RadTabStrip, the entire page refreshes whenever the timer ticks.
Here is how I have the tab strip defined in my page layout template:
And here is a dummy web part that perfectly recreates the issue I'm seeing:
Can you give me any suggestions for how to resolve this issue?
The web part I am building now uses an UpdatePanel and a Timer to regularly refresh data that is being displayed to the user. When I drop this web part onto the default page layout (no TabStrips), the web part behaves perfectly. When I drop that part into any zone on the page that uses a layout with a RadTabStrip, the entire page refreshes whenever the timer ticks.
Here is how I have the tab strip defined in my page layout template:
<div class="standardPadding"> |
<WebPartPages:WebPartZone ID="ReportTitleWebPartZone" runat="server" Title="loc:Report Title" |
QuickAdd-GroupNames="Title" QuickAdd-ShowListsAndLibraries="false" FrameType="TitleBarOnly"> |
<ZoneTemplate> |
</ZoneTemplate> |
</WebPartPages:WebPartZone> |
<telerik:RadTabStrip runat="server" ID="RadTabStrip1" Orientation="HorizontalTop" Skin="CDSC" SelectedIndex="0" MultiPageID="RadMultiPage1" EnableEmbeddedSkins="false"> |
<Tabs> |
<telerik:RadTab Text="Gauge"></telerik:RadTab> |
<telerik:RadTab Text="Bar Chart"></telerik:RadTab> |
<telerik:RadTab Text="Trend"></telerik:RadTab> |
</Tabs> |
</telerik:RadTabStrip> |
<telerik:RadMultiPage runat="server" ID="RadMultiPage1" SelectedIndex="0"> |
<telerik:RadPageView runat="server" ID="RadPageView1"> |
<WebPartPages:WebPartZone ID="WebPartZoneIn1" runat="server" Title="loc:Horizontal Row" |
QuickAdd-GroupNames="Content" QuickAdd-ShowListsAndLibraries="false" FrameType="TitleBarOnly" /> |
</telerik:RadPageView> |
<telerik:RadPageView runat="server" ID="RadPageView2"> |
<WebPartPages:WebPartZone ID="WebPartZoneIn2" runat="server" Title="loc:Horizontal Row" |
QuickAdd-GroupNames="Title" QuickAdd-ShowListsAndLibraries="false" FrameType="TitleBarOnly" /> |
</telerik:RadPageView> |
<telerik:RadPageView runat="server" ID="RadPageView3"> |
<WebPartPages:WebPartZone ID="WebPartZoneIn3" runat="server" Title="loc:Horizontal Row" |
QuickAdd-GroupNames="Content" QuickAdd-ShowListsAndLibraries="false" FrameType="TitleBarOnly" /> |
</telerik:RadPageView> |
</telerik:RadMultiPage> |
<WebPartPages:WebPartZone ID="WebPartZone9" runat="server" Title="loc:Horizontal Row" |
QuickAdd-GroupNames="Footer" QuickAdd-ShowListsAndLibraries="false" FrameType="TitleBarOnly"> |
<ZoneTemplate> |
</ZoneTemplate> |
</WebPartPages:WebPartZone> |
</div> |
And here is a dummy web part that perfectly recreates the issue I'm seeing:
public class DummyWebPart : WebPart |
{ |
protected override void CreateChildControls() |
{ |
UpdatePanel p = new UpdatePanel(); |
p.UpdateMode = UpdatePanelUpdateMode.Always; |
this.Controls.Add(p); |
Label l = new Label(); |
l.Text = DateTime.Now.ToString(); |
p.ContentTemplateContainer.Controls.Add(l); |
Timer t = new Timer(); |
t.Enabled = true; |
t.Interval = 15000; |
p.ContentTemplateContainer.Controls.Add(t); |
t.Tick += new EventHandler<EventArgs>(t_Tick); |
} |
void t_Tick(object sender, EventArgs e) |
{ |
// nothing |
} |
} |
Can you give me any suggestions for how to resolve this issue?