Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

UpdatePanel clears out Newsfeed Web Part

$
0
0

SharePoint 2013 question :

I have a custom Web Part using an Ajax UpdatePanel.  The Web Part loads in its contents after Page Load via a timer.

On the same page I have a Newsfeed Web Part.  On page load the Newfeed shows the correct contents but when the UpdatePanel triggers the Newsfeed updates to show "It's pretty quiet here...".

Any ideas?- I really don't want the hassle of rewriting using Web Services...

Here the code...

protected override void CreateChildControls()
        {
            base.CreateChildControls();
            this.UpdtPnlMilestone.UpdateMode = UpdatePanelUpdateMode.Conditional;

            LoadTimer = new Timer()
            {
                ID = this.ID + "LoadMilestoneTimer",
                Interval = 1
            };

            LoadTimer.Tick += new EventHandler<EventArgs>(LoadTimer_Tick);
            UpdtPnlMilestone.ContentTemplateContainer.Controls.Add(LoadTimer);

}

protected void LoadTimer_Tick(object sender, EventArgs e)
        {
            LoadTimer.Enabled = false;

            CallTheMethod();

        }


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>