Announcement
Collapse
No announcement yet.
X
-
hi aderosso ,
Right now, there's no automatic means of deriving Lanes from the data, so you do need to call setLanes().
You could manually fetch your event-records, find unique lane-names and create Lanes from them, before creating the Timeline.
Note that this should be a single set of known lanes for all your data - if you only want to see Lanes that have data, you can setHideUnusedLanes(true) and then the visible lanes will be recalculated as you change the visible date-range, hiding lanes that have no visible events - although Lanes disappearing and reappearing as users navigate the Timeline might be a bit jarring.
Last edited by Isomorphic; 2 May 2025, 20:26.
Leave a comment:
-
Timeline Auto Create Lanes
I'm looking at this example from the showcase: https://smartclient.com/smartgwt/sho...bound_timeline
There's a call to TimeLine.setLanes(), is that required? Or is there a way for the Timeline to create lanes based on the data from the fetch?Tags: None
Leave a comment: