-
Notifications
You must be signed in to change notification settings - Fork 21
WPF 890011 - Updated sample codes and images for Gantt UG #1345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Build Status: INPROGRESS 🔃 |
|
CI Status: SUCCESS ✅ |
|
Build Status: INPROGRESS 🔃 |
|
CI Status: SUCCESS ✅ |
|
Build Status: INQUEUE 🕒 |
|
Build Status: INPROGRESS 🔃 |
|
CI Status: SUCCESS ✅ |
|
Build Status: INQUEUE 🕒 |
|
Build Status: INPROGRESS 🔃 |
|
CI Status: SUCCESS ✅ |
|
Build Status: INPROGRESS 🔃 |
|
CI Status: FAILURE ❌ |
|
The running CI Job is terminated due to changes committed on the source branch for this Merge Request and CI triggered for latest commit. |
|
CI Status: ABORTED ❌ |
|
Build Status: INPROGRESS 🔃 |
|
CI Status: FAILURE ❌ |
|
Build Status: INPROGRESS 🔃 |
|
The running CI Job is terminated due to changes committed on the source branch for this Merge Request and CI triggered for latest commit. |
| ObservableCollection<Item> teams = new ObservableCollection<Item>(); | ||
|
|
||
| teams.Add(new Item() { Name = "RDU Team" }); | ||
| Item Person = new Item() { Name = "Robert" }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to person
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed.
| /// <returns></returns> | ||
| public ObservableCollection<Item> GetTeamInfo() | ||
| { | ||
| DateTime dtS = DateTime.Today; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
chage to dateTime
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed.
wpf/Gantt/zooming.md
Outdated
| ItemsSource="{Binding GanttItemSource}" | ||
| UseOnDemandSchedule="True" | ||
| ZoomFactor="{Binding ElementName=ZoomSlider, Path=Value}"/> | ||
| <Slider x:Name="ZoomSlider" Minimum="80" Maximum="600" Value="100" Width="150" ValueChanged="slider_ValueChanged"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use grid, add handle slider and gantt.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
wpf/Gantt/zooming.md
Outdated
| /// <summary> | ||
| /// Handles the ValueChanged event of the slider control. | ||
| /// </summary> | ||
| void slider_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to OnSliderValueChanged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed.
wpf/Gantt/zooming.md
Outdated
| ItemsSource="{Binding TaskCollection}" | ||
| UseOnDemandSchedule="True" | ||
| ZoomFactor="{Binding ZoomFactor}" | ||
| ZoomChanged="Gantt_ZoomChanged"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to OnGanttZoomChanged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed.
wpf/Gantt/zooming.md
Outdated
| taskDetails[1].Child.Add((new TaskDetails() { TaskId = 11, TaskName = "User Assistance Components", StartDate = new DateTime(2011, 7, 10), FinishDate = new DateTime(2011, 7, 14), Progress = 10d })); | ||
| taskDetails[1].Child.Add((new TaskDetails() { TaskId = 12, TaskName = "Software components complete", StartDate = new DateTime(2011, 7, 14), FinishDate = new DateTime(2011, 7, 19), Progress = 10d })); | ||
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed unwanted added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
Karthickmani97
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TamilarasanGunasekaran , Address my review corrections.
|
Build Status: INQUEUE 🕒 |
|
Build Status: INPROGRESS 🔃 |
|
CI Status: SUCCESS ✅ |
| PredecessorMapping="Predecessor" | ||
| ProgressMapping="Progress" /> | ||
| </syncfusion:GanttControl.TaskAttributeMapping> | ||
| <syncfusion:GanttControl.Resources> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<syncfusion:GanttControl.Resources> , added two times. remove it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
|
|
||
|  | ||
|
|
||
| Custom Node Style |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add image for custom node style.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added.
| {% endhighlight %} | ||
|
|
||
| } | ||
| {% highlight c# tabtitle="ViewModel.cs" %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add TopCountries model file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Model file added.
wpf/Gantt/custom-schedule.md
Outdated
| BorderThickness="0.5" | ||
| Opacity="0.8"> | ||
| <interact:Interaction.Behaviors> | ||
| <local:NumericGanttNodeCustomizationBehavior /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NumericGanttNodeCustomizationBehavior is this need?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need, removed.
| this.ganttControl.CustomScheduleSource = this.GetCustomScheduleSource(); | ||
|
|
||
| // Hooks the schedule cell created event to customize the schedule cell appearance. | ||
| this.ganttControl.ScheduleCellCreated += this.OnGanttScheduleCellCreated; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This event method OnGanttScheduleCellCreated, where it is declared?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Event name updated.
wpf/Gantt/highlighting-tasks.md
Outdated
| HighlightedItems="{Binding HighlightedTasks}"> | ||
| </sync:GanttControl> | ||
| <syncfusion:GanttControl x:Name="ganttControl" | ||
| HighlightItemBrush="{Binding Path=Brush, ElementName=HighlightBrush, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't copy code directly from Gantt SB. change code based on req.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed.
| taskDetails[1].Child.Add((new TaskDetails() { TaskId = 11, TaskName = "User Assistance Components", StartDate = new DateTime(2011, 7, 10), FinishDate = new DateTime(2011, 7, 14), Progress = 10d })); | ||
| taskDetails[1].Child.Add((new TaskDetails() { TaskId = 12, TaskName = "Software components complete", StartDate = new DateTime(2011, 7, 14), FinishDate = new DateTime(2011, 7, 19), Progress = 10d })); | ||
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove unwanted lines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
wpf/Gantt/strip-lines.md
Outdated
| taskAttributeMapping.ResourceInfoMapping = "Resource"; | ||
| this.ganttControl.TaskAttributeMapping = taskAttributeMapping; | ||
|
|
||
| StripCollection = new List<StripLineInfo>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where StripCollection varaible is declared.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Declared.
wpf/Gantt/strip-lines.md
Outdated
| taskAttributeMapping.ResourceInfoMapping = "Resource"; | ||
| this.ganttControl.TaskAttributeMapping = taskAttributeMapping; | ||
|
|
||
| StripCollection = new List<StripLineInfo>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
StripCollection varable not declared.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Declared.
wpf/Gantt/zooming.md
Outdated
| slider.Minimum = 600; | ||
|
|
||
| //Hooking the value changed event of the slider | ||
| slider.ValueChanged += slider_ValueChanged; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
slider_ValueChanged , where it is used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Event name Updated.
|
Build Status: INQUEUE 🕒 |
|
Build Status: INPROGRESS 🔃 |
|
CI Status: SUCCESS ✅ |
|
Build Status: INPROGRESS 🔃 |
|
CI Status: SUCCESS ✅ |
Karthickmani97
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine.
I have updated sample codes and images for Gantt UG content.