Announcement

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

    How to catch fetch Callback when navigating in Timeline with navigation bar

    Hi

    Calendar and Timeline have navigation bar where you can select period by pressing Left and Right buttons.
    Each press on databound Timeline force data fetch operation. How can I catch a callback of this operation in order to fill in Lanes based on returned result.
    I know you recomends fill in lanes before the first fetch call. However it really doesn't looks like acceptable approach when you have thousands rows as possible lane title candidates.

    Thanks in advance

    #2
    You could install a DataArrivedHandler - but note that, if you use that hook to start manipulating the set of available lanes, you may start clashing with internal behaviors that will result in multiple excess calls to refresh data.

    Comment


      #3
      Hi
      Thank you very much for immediate answer.
      Do I understand correctly that there is no way to manage Lines dynamically? Before first data fetch I can get list of related lines. However when I navigate with Left/Right buttons it's not possible to get Lines list first and only then call data fetch to avoid multiply data refresh?

      Comment


        #4
        What exact build of SmartGWT are you using?

        If you *really* have thousands of available lanes, that would be bad UE for the user.

        What are you actually trying to do?

        If you just want to only show lanes for which there are events in the current data, you can do that by pre-fetching your lane records, applying them to the calendar and then calling Calendar.setHideUnusedLanes(true).

        Note that, if you have thousands of event records per time-frame, this may prove too slow. If this feature is what you are looking for, but proves too slow, let us know - we already have an optimized version queued for development.

        Comment


          #5
          Sorry I forgot to insert the version info:

          SmartClient Version: v10.0p_2015-11-06/LGPL Development Only (built 2015-11-06)
          IE 11

          In my case Lines represent Configuration Items (CI) that belongs to different types like "AIX Server", "Windows Server", "Oracle Database", "Router" etc. Events are some activities that were completed on these CI. User could be interested "What activities were completed on all CIs during last 4 weeks". There may be very few activities during this period and thus very few CI (lines) to show in Timeline. It looks wasteful to load full list of CI when you need just 5-10.
          In additional when user needs activity Timeline for specific CI(s) only I have a FilterBuilder assigned to the same DataSource that Timeline is. So user can apply filter and select events for cpecific CIs only.

          The challenge is that when I navigating Timeline I neither can select limited CI list before select events data nor update lane list after select events data and get CI list from it.

          Comment


            #6
            Ok - so, did you try pre-loading and assigning all the lanes and then calling setHideUnusedLanes(true)?

            Comment


              #7
              No. I didn't try. Our actual database has less than 200 CIs. However I would like to implemet the "right" solution right now in order to don't warry about posiible performance issues in future.

              Comment

              Working...
              X