October 14, 2019, 08:59:07 AM

See more Support incidents in our old archived forum.

Recent Posts

Pages: 1 ... 6 7 [8] 9 10
71
WPF Gantt Package / Re: Fexy gantt scroll postion after reload -problem
« Last post by ilkka.paloheimo on June 29, 2017, 01:40:17 PM »
I have to come back to this same problem once again.

We have still problems to get scroll bars correctly synchronized when UseChartVirtualization="True"
It do not happen all the time but when it happens it causes a lot of troubles for the software users.
And we have to use Virtualization because of its efficiency.

we tried to correct this as you succeeded earlier.
But as you see SetVerticalScrollPercent fails to set vertical scroll bar.
It is 100 after set ?????




 Here is what we do:

 Private Function GetVerticalScrollPercent() As Double
        Dim p As AutomationPeer

        If ResourceFlexyGantt.UseChartVirtualization Then
            p = If(FrameworkElementAutomationPeer.FromElement(ResourceFlexyGantt.GanttChart.VerticalScrollViewerElement), FrameworkElementAutomationPeer.CreatePeerForElement(ResourceFlexyGantt.GanttChart.VerticalScrollViewerElement))
        Else
            p = If(FrameworkElementAutomationPeer.FromElement(ResourceFlexyGantt.GanttChart.VerticalScrollViewerElement), FrameworkElementAutomationPeer.CreatePeerForElement(ResourceFlexyGantt.GanttChart.VerticalScrollViewerElement))
        End If
        Dim chartScrollProvider = TryCast(p.GetPattern(PatternInterface.Scroll), IScrollProvider)
        Return chartScrollProvider.VerticalScrollPercent
End Function

Private Sub SetVerticalScrollPercent(grid As DataGrid, direction As ScrollDirection, vp As Double)
        ' Get the scroll provider of the grid.
        Dim p1 As AutomationPeer = If(FrameworkElementAutomationPeer.FromElement(grid), FrameworkElementAutomationPeer.CreatePeerForElement(grid))
        Dim scrollProvider As IScrollProvider = TryCast(p1.GetPattern(PatternInterface.Scroll), IScrollProvider)
        ' Scroll.
        Select Case direction
            Case ScrollDirection.Up, ScrollDirection.Down
                If scrollProvider.VerticallyScrollable Then
                    scrollProvider.SetScrollPercent(System.Windows.Automation.ScrollPatternIdentifiers.NoScroll, vp)
                End If
                Exit Select
            Case ScrollDirection.Left, ScrollDirection.Right
                If scrollProvider.HorizontallyScrollable Then
                    scrollProvider.SetScrollPercent(vp, System.Windows.Automation.ScrollPatternIdentifiers.NoScroll)
                End If
                Exit Select
        End Select
End Sub

Private Async Sub FillFlexyGantt() ' get data

     vp = Me.GetVerticalScrollPercent()

   .......
   read data from Sql Server
   ResevationsItemSource = GetReservations(....
   ' ResevationsItemSource = binding collecton
   .......

    ' Check and set the scroll percent to the grid.
          Do While ResourceFlexyGantt.FlexyTable.AsControl.IsEnabled = False
                Await System.Threading.Tasks.Task.Run( _
                Sub()
                    System.Threading.Thread.Sleep(100) ' Give time for view to be updated before resetting scroll bar
                End Sub)
          Loop
            Dim vp2 As Double = GetVerticalScrollPercent()
            If vp2 <> vp Then
                If vp > 0 And ResourceFlexyGantt.FlexyTable.AsControl.IsEnabled = True Then
                    Dim grid As DataGrid = DirectCast(ResourceFlexyGantt.FlexyTable.AsControl, DataGrid)
                    SetVerticalScrollPercent(grid, ScrollDirection.Up, vp)
                End If
            End If

            System.Diagnostics.Debug.WriteLine("Scroll before: " & vp.ToString & " After: " & vp2.ToString)
     ...........
End Sub
 



Scroll before: 53.3333333333333 After: 100
Scroll before: 56.25 After: 100
Scroll before: 56.25 After: 100
Scroll before: 53.3333333333333 After: 100
72
Silverlight Gantt Package / Re: Display one day on Gantt and multiple selection
« Last post by Rajagopal on June 12, 2017, 04:18:52 PM »
aleksandrat,

1) Please take a look at our "Common\TimeScaleTypeHours" install sample for displaying one day on Gantt.

2) You need to implement this feature in FlexyGantt or GanttControl? And also, could you please elaborate on this feature?


Thanks
Raja
73
Silverlight Gantt Package / Display one day on Gantt and multiple selection
« Last post by aleksandrat on June 10, 2017, 03:23:42 PM »
Hello All!

In our application we need to display only one day on Gantt without scrolling on the next or previous day. We dont find solution on forums. Is it possible to do on Gantt?

And another question. We need a function, which provide users to select and move left\rigth several tasks at once. Can you recommend how to do it?

Thanks
74
WPF Gantt Package / Re: FlexyNodeData.YFromChartTop value = -1
« Last post by ForumAdmin on June 01, 2017, 10:50:15 PM »
Martin,

When UseChartVirtualization is set, -1 indicates that the row is out of view and not rendered. Do you see any issues with this implementation?

Regards,
Praveen
75
WPF Gantt Package / FlexyNodeData.YFromChartTop value = -1
« Last post by vtunc on June 01, 2017, 01:55:39 PM »
Hi,

I have a next concern.
In Some situations, the YFromChartTop property of a FlexyNodeData has the value -1.
I could not figure out why the value is sometimes -1. I think the value is -1 if the GanttChart has many lines or each line has many appointments.
Can you explain to me in what situations is the value -1 or is it a bug?

Thanks and Regards,
Martin
76
Thanks for the reply and thank you for pointing me in the right direction. I simply added isParentEditable: true to the name column and it works fine now. I guess the default behavior is "false". Anyway, it is working as expected now. Thanks for the quick response.
77
jQuery Gantt Package / Re: The task name on my summary tasks are not editable
« Last post by Rajagopal on May 30, 2017, 10:53:05 AM »
steve.vilotti,

We are not able to reproduce this issue. We suspect as you may turn off the "isParentEditable" boolean flag for name column. Please help us to reproduce this issue in one of our install sample?

Thanks
Raja
78
jQuery Gantt Package / The task name on my summary tasks are not editable
« Last post by steve.vilotti on May 25, 2017, 08:14:59 PM »
I can edit the task name column without issue as long as it is not a summary task. As soon as I outdent a task to make it a summary task, I am no longer able to edit the task name field. I notice that on the demo, it allows for the summary task names to be edited. I am using a custom version of the jQuery Gantt that was provided to me ( ver. 5.0.27.43). I have not updated to the newest version yet. It is a very difficult process for us to upgrade as we are integrating the Gantt into Dynamics CRM and Microsoft has particular naming rules for the supporting files. Some of which have to be renamed. Is there a setting that I am missing that enables/disables summary task name editing? Any help would be appreciated.
79
Sean,

The changes you have made is looks correct. We will test with your changes and make sure everything is fine. And we will share the updated assembly soon.

Thanks
Raja
80
Silverlight Gantt assembly version 6.0.5.1

We experience the above error (line 70 in WorkTimeSchedule.cs) when rebinding the gantt which is required when adding a new resource to the gantt after the initial binding. ie

Users.Add(opResource); //resource collection already bound to the gantt
ganttControl.ItemsSource = null;
ganttControl.ItemsSource = App.ConfigOptions.Tasks.OrderBy(t => t.SortOrder);

It always seems to be related to milestones and predecessors but is difficult to pinpoint exactly.
Ie by trial and error if a specific predecessor is removed then the error no longer occurs.

We have implemented a fix but wanted to run the fix by you before we implement as the fix is to your code and we are uncertain of any possible ramifications regarding the fix.

We traced the issue back as far as line 542 of BaseGanttModel.cs in method ComputeEffort which for us looks like this.

public TimeSpan ComputeEffort(IActivity activity, DateTime suggestedEndTime)
        {
            DateTime startTime = activity.StartTime;

            // Dont bother with this setting, as its quite probably just intermediate.
            if (startTime == DateTime.MinValue || startTime == DateTime.MaxValue)
                return TimeSpan.Zero;

Sometimes suggestedEndTime < startTime which results in the error.

We have modified it to

if (startTime == DateTime.MinValue || startTime == DateTime.MaxValue || suggestedEndTime < startTime)
                return TimeSpan.Zero;

note the additional clause to prevent a negative timespan.

please could you advise if this fix is likely to cause any other issues? Or alternatively advise why a suggested end time for a milestone will ever be less than it's actual start time.

Regards,
Sean.
Pages: 1 ... 6 7 [8] 9 10