Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Timeline horizontal sliding limitation

    The users want to horizontally slide on one year, without using the blue arrows of the Controls Bar.
    Here is the code.
    Code:
    [INDENT] this.planning = new Timeline();
      this.planning.setID("BannerFormViewImpl_planning");
    this.planning.setHeight(300);
    this.planning.setWidth100();
    Date today = new Date();
    this.planning.setStartDate(today);
    CalendarUtil.addDaysToDate(today, 365);
    this.planning.setEndDate(today);
    this.planning.setShowControlsBar(false);
     [/INDENT]
    But when the Timeline is drawn, the horizontal slider stops at 89 days instead of the 365 expected days.
    Is there a way to go beyond this 89 days limited period without using the controls bar?
    Thanks in advance
    Regards

    #2
    Did you check the Developer Console for warnings? Please let us know what you see there.

    Comment


      #3
      When you look there, you'll see a warning that you exceeded the internal maximum timeline column limit, which is in place to prevent accidental applciation of a huge date-range that grinds the browser to a halt, but is otherwise a fairly arbitrary number - we may expose the attribute that controls this in the future, but for now, we've altered the default value from 100 to 400, which allows for a year's worth of day columns, plus a little either side.

      Note, though, that if you have a great may events in a timeline with this many columns, you may hit performace issues.

      If your timeline is showing day columns and has an eventSnapGap of 1440 (ie, whole days) , a better technique is probably to show week columns, with no eventSnapGap specified - that will provide 7 snaps per (week) column.

      Comment

      Working...
      X