Declined
Last Updated: 08 Mar 2016 09:40 by ADMIN
Preeti
Created on: 16 Feb 2016 10:13
Category: ScheduleView
Type: Feature Request
0
telerik scheduler
hi,
I have use telerik scheduler for wpf platforms and in timelineview if I add timeslots in 11:00 to 3:00 pm then its shows in scheduler from 11:00 to 2:59 but not shows 3:00.
how 3:00 will also appear on the scheduler.
6 comments
ADMIN
Yana
Posted on: 08 Mar 2016 09:40
Hi Preeti,

For any technical questions, please send us a support ticket or post them in the respective forums.

Thank you for the understanding.

Regards,
Yana
Preeti
Posted on: 01 Mar 2016 14:35
Hello Yana
If I am using this piece of code 
 var scheduleView = this.schedule as RadScheduleView;
            var canvas = scheduleView.Parent as ScrollViewer;
            PrintDialog printDlg = new PrintDialog();
            if (printDlg.ShowDialog() == true)
            {
                //get selected printer capabilities
                System.Printing.PrintCapabilities capabilities = printDlg.PrintQueue.GetPrintCapabilities(printDlg.PrintTicket);
                double printWidht = capabilities.PageImageableArea.ExtentWidth - 50;
                double printHeight = capabilities.PageImageableArea.ExtentHeight - 50;
                var pageSize = new Size(printDlg.PrintableAreaWidth, printDlg.PrintableAreaHeight);
                var visibleSize = new Size(capabilities.PageImageableArea.ExtentWidth, capabilities.PageImageableArea.ExtentHeight);
                FixedDocument fixedDoc = new FixedDocument();
                var size = canvas.RenderSize;
                canvas.Height = 50000;
                scheduleView.MinTimeRulerExtent = canvas.RenderSize.Height;
                scheduleView.MaxTimeRulerExtent = canvas.RenderSize.Height;
                canvas.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity));
                canvas.Arrange(new Rect(canvas.DesiredSize));
                canvas.UpdateLayout();
                scheduleView.Measure(canvas.RenderSize);
                printDlg.PrintTicket.PageMediaSize = new PageMediaSize(printDlg.PrintableAreaWidth, canvas.ActualHeight);
                double yOffset = 0;
                while (yOffset < size.Height)
                {
                    var vb = new VisualBrush(canvas)
                    {
                        Stretch = Stretch.None,
                        AlignmentX = AlignmentX.Left,
                        AlignmentY = AlignmentY.Top,
                        ViewboxUnits = BrushMappingMode.Absolute,
                        TileMode = TileMode.None,
                        Viewbox = new Rect(0, yOffset, visibleSize.Width, visibleSize.Height)
                    };
                   

                    var pageContent = new PageContent();
                    var page = new FixedPage();
                    ((System.Windows.Markup.IAddChild)pageContent).AddChild(page);
                    fixedDoc.Pages.Add(pageContent);

                    page.Width = pageSize.Width;
                    page.Height = pageSize.Height;
                    var canvas1 = new Canvas();
                    FixedPage.SetLeft(canvas1, capabilities.PageImageableArea.OriginWidth);
                    FixedPage.SetTop(canvas1, capabilities.PageImageableArea.OriginHeight);
                    canvas1.Width = visibleSize.Width;
                    canvas1.Height = visibleSize.Height;
                    canvas1.Background = vb;
                    page.Children.Add(canvas1);

                   
                    //printDlg.PrintVisual(fixedDoc.DocumentPaginator, string.Empty);

                   
                    //canvas.Measure(size);
                   
                    yOffset += visibleSize.Height;
                }
                printDlg.PrintDocument(fixedDoc.DocumentPaginator, string.Empty);
                scheduleView.ClearValue(RadScheduleView.MaxTimeRulerExtentProperty);
                scheduleView.ClearValue(RadScheduleView.MinTimeRulerExtentProperty);
                scheduleView.Measure(canvas.RenderSize);
            }

my scheduler is printing the content that is front of it but it will not show the below content of scheduler view.
as week view content it can only show 2 days data not remaining content.
please provide the right way so that I can print entire data of one view.
Preeti
Posted on: 01 Mar 2016 05:03
Hello Yana
I need Print functionailty in telerik radscheduler on WPF platfrom with the version of 2014.1.331.40.
but I am unable to do any print task on it.
i am using the link
 http://www.telerik.com/blogs/printing-with-radscheduler-for-winforms-in-a-nutshell
but when I was doing this action
 RadPrintDocument document = new RadPrintDocument(); 
document.AssociatedObject = this.radScheduler1;
the scheduler object thrown an error of type casting.
please guide me so that I can do printing on my telerik scheduler.
ADMIN
Yana
Posted on: 24 Feb 2016 09:35
It will be not an easy task to show the End Time - you should customize the TimeRulerItemTemplateSelector property of the ScheduleView and more specifically the HorizontalTimelineMajorItemTemplate. You could obtain the default TimeRulerItemTemplateSelector from the ScheduleView theme xaml file ( check the following topic: http://docs.telerik.com/devtools/wpf/styling-and-appearance/styling-apperance-editing-control-templates ).  Inside the HorizontalTimelineMajorItemTemplate DataTemplate you will have the DateTime ( which marks the start) and the Duration of each interval (according to MajotTickLength setting), so you can add a converter and return the date formatted in a different way ( StartTime - EndTime, for example). If you have any difficulties with the suggested approach, please contact us through the support ticketing system with more details on your exact setup.
Preeti
Posted on: 19 Feb 2016 10:08
Hi Yana
Thank-you for the reply actually I have to display the End time to client is there any way so that I can show End Time
ADMIN
Yana
Posted on: 19 Feb 2016 09:42
Hi Preeti,

Indeed, the DayEndTime is not displayed in the TimeRuler as it marks the end of the TimeRuler tick, only the time which marks the start of the TimeRuler ticks is shown. Still, you will be able to create appointments with End set to the DateEndTime. If that's not the case, could send us more details on the exact scenario you have?