This is a migrated thread and some comments may be shown as answers.

radscheduleview for project planning

6 Answers 117 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Armin
Top achievements
Rank 1
Armin asked on 22 Aug 2011, 11:20 AM
Hello,
I need to create a project planning tool which allows to manage project lenght (in days) and responsibility with drag and drop functionality;
I thought that the timeline view may be what I'm looking for but there are always times (hour, minute, second) in between which are not interesting for me.
Substantially I would need the timeline view with 4 employees as rows and the days as columns; the user should then be able to create a new project which can be 1 to n days and drag and drop it between the employees.

Could You please give me some advise or small sample project on how I could do this?

Regards

6 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 23 Aug 2011, 04:15 PM
Hello Armin,

I guess that TimelineViewDefinition is suitable for your scenario, you just need to set its MinorTickLength and MajorTickLength properties (they're demonstrated in ScheduleView Configuratior example in our WPF qsf here).

Also you should use resources for the different employees, please check this help article for more details.
I've attached a simple example to demonstrate both approaches, please download it and examine it.

Kind regards,
Yana
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Armin
Top achievements
Rank 1
answered on 29 Aug 2011, 09:52 AM
Hello Yana,
thanks, that's exactly what I was looking for!
But now I have another problem; I tried my case in a small sample project and everything works as expected. But when I copy the same code to my real project I am not able anymore to resize or drag and drop appointments! It seems as if the control is in a kind of readonly mode.
It is the same code; I really don't understand what the problem could be!?

Unfortunately I cannot send you our production code and in the sample project I was not able to reproduce the behavior; but maybe you have an idea of what the problem could be (DragDropManager,...)?

Regards
0
Yana
Telerik team
answered on 29 Aug 2011, 11:58 AM
Hello Armin,

We're not sure what could be the reason for this issue. The ScheduleView can be in read-only mode in the following cases:
  • when there are SpecialSlots with IsReadOnly property enabled;
  • when some events are cancelled (AppointmentEditing, AppointmentCreating);
  • when there is a custom DragDropBehavior with some overriden methods.

Could you please check these cases? Let us know the whether this helps.
 
Kind regards,
Yana
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Armin
Top achievements
Rank 1
answered on 29 Aug 2011, 12:51 PM
Hello Yana,
I checked all 3 points that You suggested, but I don't use SpecialSlots nor do I have registered events or a custom DragDropBehavior. May it be related with MVVM (Prism) that I am using!?
Because I tried to show view in a separate window and there it works as expected.
I checked my code if I was setting a RadDragAndDropManager somewhere but nothing.
The application is structured like this:
Shell (Window)
  Grid
    RadTabControl
      RadTabItem
        RadDocking
            RadSplitContainer
                RadPaneGroup
                    RadPane
                        ContentControl (where on startup the user control with the radscheduleview is placed)

I created the same structure in a sample project and there it works (there I'm not using Prism).

I tried also to put the scheduler on top of all other controls and there it worked (kind of).
Maybe You have some other suggestions on what I could try!?

Regards
0
Armin
Top achievements
Rank 1
answered on 30 Aug 2011, 08:07 AM
Hello Yana,
I was now able to create a simple sample application which shows the bug. You can download it under this url: http://www.sendspace.com/file/gtf79o

Regards
0
Yana
Telerik team
answered on 31 Aug 2011, 02:35 PM
Hello Armin,

Thank you for providing the project.

There are two issues:

1. the first one is related to your custom appointment, could you please inherit Appointment class instead of implementing IAppointment? -  the approach is demonstrated here.

2. there is an issue with Drag-and-Drop functionality in RadDocking when it's placed in TabControl, it's already logged in our issue tracking system, you can vote for it and check its status here.

Best wishes,
Yana
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
ScheduleView
Asked by
Armin
Top achievements
Rank 1
Answers by
Yana
Telerik team
Armin
Top achievements
Rank 1
Share this question
or