Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Timetable - first column header in GroupByRescource (Read 5335 times)
Aleksandar
YaBB Newbies
*
Offline


I Love MindFusion! I really
do! :)

Posts: 11
Location: Serbia
Joined: May 28th, 2017
Timetable - first column header in GroupByRescource
Jun 11th, 2017 at 9:36am
Print Post  
I made a Timetable with three Locations and three Resources to group by.
I followed the tutorial on Grouping and it makes each day divided into a nuber of locations, but the first column's name is:
Mindfusion.Scheduling.Wpf.ScheduleCellPresenter+ColumnHeaderContent
When there is only one day added, it is only the first column of that one day.
When there are two days, the first two columns have the mentioned name instead of "L1" or "L2" (please see images below).
With three days in the TimeTable, it's the first three and so on..

EDIT1: seems that it is sometimes displayed regularly, sometimes with the strange column name.. I cannot determine the cause, I am sorry. Should any of the additions (resource or locations) be inside the Begin-End Init block?

Question #1: how to solve this issue? [SOLVED] see my response below

Important Question #2: how to react on the click on a Group's column name? I would like to get at least the text from the header. It would be nice if I could change the cursor to a pointing hand when I hover over the group's names. So, for example, in the first attached photo, I would like to get the string "L3" if I click on that column.

Question #3: how to disable any editing of Timetable's items (forbid any creation, update or deletition)?

Question #4: how to turn the content of the appointments (the whole items actually) to be vertical?

Question #5: Is it possible to have a scrollbar in each day's column? I need this (or any other solution suggestion) since I will have a bigger (> 5) number of Resources/Locations to group by.

Time is of the essence for me, so please answer as quickly as possible.

Many thanks,
Aleksandar.
« Last Edit: Jun 11th, 2017 at 11:58am by Aleksandar »  

one_day_3_cols.PNG ( 4 KB | 210 Downloads )
one_day_3_cols.PNG
two_days_3_cols.PNG ( 4 KB | 215 Downloads )
two_days_3_cols.PNG
Back to top
 
IP Logged
 
Aleksandar
YaBB Newbies
*
Offline


I Love MindFusion! I really
do! :)

Posts: 11
Location: Serbia
Joined: May 28th, 2017
Re: Timetable - first column header in GroupByRescource
Reply #1 - Jun 11th, 2017 at 11:33am
Print Post  
Ok, I found the solution for the first problem, by moving the Locations/Resources initialization and addition from the Calendar's Loaded to it's parent container's Loaded event handler.

So, I changed from this:
Code
Select All
<Grid>
    <planner:Calendar x:Name="globalCalendar"  Loaded="globalCalendar_Loaded" .... 



to this:
Code
Select All
<Grid Loaded="globalCalendar_Loaded">
    <planner:Calendar x:Name="globalCalendar" .... 



I am still interested in questions #2 , #3 and #4, so, please respond.

Thank You for Your time.
Greetings,
Aleksandar
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Timetable - first column header in GroupByRescource
Reply #2 - Jun 12th, 2017 at 7:49am
Print Post  
Hi,

A sample illustrating how to implement point #2 can be downloaded from the link below:

https://mindfusion.eu/_samples/_sample_CustomTimetableHeader.zip

I'll write a response to the questions shortly.

Regards,
Meppy
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Timetable - first column header in GroupByRescource
Reply #3 - Jun 12th, 2017 at 7:57am
Print Post  
Hi again,

#1. I cannot reproduce the false column header text with the most recent dlls. You can check the attached sample and see that the column names display properly.

#2. The attached sample demonstrates how to do that using custom column header presenters.

#3. This is also demonstrated in the attached sample by using a combination of calendar events and properties, namely, AllowInplaceCreate, AllowInplaceEdit, ItemModifying, and ItemDeleting.

#4. This should be possible by using a custom item presenter. I'll update the sample later to show this.

#5. This cannot be done.

Let me know if this helps.

Regards,
Meppy
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Timetable - first column header in GroupByRescource
Reply #4 - Jun 12th, 2017 at 8:50am
Print Post  
Hi,

I've updated the sample to illustrate how the text of the all-day items can be rotated:

https://mindfusion.eu/_samples/_sample_CustomTimetableHeader3.zip

Regards,
Meppy
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Timetable - first column header in GroupByRescource
Reply #5 - Jun 12th, 2017 at 11:06am
Print Post  
Hi,

I've updated the sample once again to illustrate a possible way to implement #5 - by using several calendar instances, displaying the same schedule.

https://mindfusion.eu/_samples/_sample_CustomTimetableHeader4.zip

Regards,
Meppy
  
Back to top
 
IP Logged
 
Aleksandar
YaBB Newbies
*
Offline


I Love MindFusion! I really
do! :)

Posts: 11
Location: Serbia
Joined: May 28th, 2017
Re: Timetable - first column header in GroupByRescource
Reply #6 - Jun 12th, 2017 at 8:21pm
Print Post  
Wow! Just WOWCheesy
I jsut got to my laptop and I see all these answers - it's a wonderful feeling! Smiley

I will start implementing each of the given examples, and will let You know if something goes wrong.

Thank You so much!

Regards,
Aleksandar.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint