none
New SP Timeline web part not ajax friendly! RRS feed

  • Question

  • Documenting this in the hope someone from the SP product team may be reading and get it logged!

    But just noticed that if you have the new timeline or project summary web parts on a page that has other controls or web parts that do partial page postbacks - every time you do a partial page postback a new timeline is rendered!!!

    Simple to reproduce with the Timeline web part and XsltListViewWebPart with Ajax updating enabled web parts on the same page...

    Thursday, May 16, 2013 9:27 AM

Answers

All replies

  • Yep, and this is how it looks like! Since the timeline is a nice feature, I hope this will be fixed. Thank you Donal, for documenting the root cause.
    Thursday, May 16, 2013 10:15 AM
  • You can try to work around it by using javascript like this:

            // remove duplicate entries from timeline after using updatepanel ajax requests        
            Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
            function EndRequestHandler(sender, args) {
                jQuery("[isTimelineParent=1]").each(function (index,timelineParent) {
                    while (timelineParent.childNodes.length > 1 && timelineParent.firstChild != null) {
                        timelineParent.removeChild(timelineParent.firstChild);
                    }
                });
            }

    If jQuery is not available you must invent you own method to select the outer span from the timeline divs.

    Tuesday, October 22, 2013 9:37 AM
  • Here it is, 2015, and the issue still exists. Any Microsoft SP folks care to comment?
    Monday, January 12, 2015 4:44 PM