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

Problem with TimeLine View rendering

7 Answers 129 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
MI87
Top achievements
Rank 1
MI87 asked on 20 Dec 2012, 04:29 PM
I have a probleme with TimeLine View
I use Telerik v 2012.3.1205

My scheduler is group by ressources.
I want to display a whole month with TimeLine View ; so I configured my scheduler with this lines :

this.RadScheduler1.Width = new Unit(3000);
this.RadScheduler1.TimelineView.NumberOfSlots = 336;
this.RadScheduler1.TimelineView.SlotDuration = TimeSpan.FromHours(2);
this.RadScheduler1.TimelineView.TimeLabelSpan = 2;
this.RadScheduler1.TimelineView.ColumnHeaderDateFormat = @"dd";
this.RadScheduler1.TimelineView.StartTime = new TimeSpan(0, 0, 0);



The result is capture n°1 (01_NoProblem) ...
with, for example, Red appointment from 12/25 to 12/28
All is right.

But :
I don't want to see the "non workable" hours...so, in the RadScheduler1_TimeSlotCreated method, I have the

folowing lines :
if (e.TimeSlot.Start.TimeOfDay < new TimeSpan(8, 0, 0)
|| e.TimeSlot.Start.TimeOfDay >= new TimeSpan(18, 0, 0))
{
    e.TimeSlot.Control.Style.Add(HtmlTextWriterStyle.Width, "0px");
}
else
{         ...        }

Problem : the Appointments don't appear correctly. (cf. caprture n° 2)
For exmaple, the Red appointment start from  12/20 to 12/23


I suspect the HTML style (Width, "0px") is the problem ... or not ?

How can I achieve this ?

Thanks in advance

7 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 21 Dec 2012, 10:53 AM
Hello,

 
Unfortunately such behavior (setting the width of some time slots to 0)is not supported with the current version of RadScheduler due to the specific way the appointments are positioned in this view. Please excuse us for this limitation of our control. As a possible workaround I would suggest you to disable the slots instead of hiding them as it is done in this on-line demo.

Regards,
Plamen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
MI87
Top achievements
Rank 1
answered on 21 Dec 2012, 01:54 PM
Hello

Thanks Plamen, OK.
Not possible with Timeline view...

But with week view...
For example, cf. capture n° 1

Is there another way I can reproduce a view like capture n°2 ?

Regards,
0
Plamen
Telerik team
answered on 21 Dec 2012, 03:20 PM
Hi,

 
I have inspected the issue from the images but unfortunately it can not be achieved with RadScheduler as well.

Greetings,
Plamen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
MI87
Top achievements
Rank 1
answered on 06 Feb 2013, 10:05 AM
Hello

1 post before, you wrote "Unfortunately such behavior (setting the width of some time slots to 0)is not supported with the current version of RadScheduler"...

But can I set the width to 3 or 5 px (for particular column) ?

Thanks
0
Plamen
Telerik team
answered on 11 Feb 2013, 11:20 AM
Hi,

We do not recommend such custom settings for just some of the time slots because some unusual and unwanted issue may arise with the appointments in RadScheduler.

Regards,
Plamen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
MI87
Top achievements
Rank 1
answered on 11 Mar 2013, 11:04 AM
Hello

You do not recommend to use these settings otherwise it does not work properly.
So,
Can I register a issue about it?
Or is there a similar request to hide part of the day (night), on week simple view ?
What do you recommend as formulation for this request?

Do I have a chance to have this issue done a day ?

(we 
need to renew our Telerik license this month and this functionnality is necessary for our scheduler...)
0
Plamen
Telerik team
answered on 14 Mar 2013, 11:57 AM
Hello,

 
I have added a feature for the issue in our Feedback portal here. You can vote for it and follow its status there.

Unfortunately at the moment we can not commit on any ETA for this feature request.

Regards,
Plamen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Scheduler
Asked by
MI87
Top achievements
Rank 1
Answers by
Plamen
Telerik team
MI87
Top achievements
Rank 1
Share this question
or