Thank you, I think the first option is the best way for me. I'm trying hard, but with no result. I wrote this routine:
Private Sub SaveExpandedState()
Dim ExpandedDictionary As New Dictionary(Of Integer, Boolean)
For Each task As Task In DayPilotGantt.Tasks
ExpandedDictionary.Add(task.Id, task.Id)
Next
Session("ExpandedDictionary") = ExpandedDictionary
End Sub
Private Sub DayPilotGantt_DataBinding(sender As Object, e As EventArgs) Handles DayPilotGantt.DataBinding
SaveExpandedState()
End Sub
But the object DayPilotGantt.Tasks is always empty. I've tried to put it everywhere, al in page load. I have no idea where to get the expanded value...
Could you give me one more suggestion please?