Hello,
I am using Visual Studio 2010 and Telerik.Web.UI, v.2012.1.215.40 (Dev).
My webform has an embedded RadScheduler. I believe that the RowHeight of a scheduler defaults to 25px. At run-time, however, I change the RowHeight property using the following simple code, based on the view selected by the end-user:
That works fine and the row heights sucessfully switch between 25 and 100px as the user changes the view.
Then I added a button below the scheduler to export the current scheduler view to a PDF file. The button click code is very basic and is as follows:
The click event works fine and successfully creates a PDF file.
When the scheduler is in Timeline view, which successfully displays the row heights at 100px, and the export button is clicked, the row heights are ignored during the export to PDF. The row heights in the PDF file appear to be back at 25px. The webform, which is still open in Timeline view, continues to display the row heights at 100px. How can I resolve this problem?
BTW, if I do away with the NavigationComplete event above, and explicitly add RowHeight="100px" to the <telerik:RadScheduler> ... </telerik:RadScheduler> schema, I still have the same problem when I click my Export to PDF button.
Is there something I can do to maintain the 100px row height whenever I export to PDF?
Thanks,
Steven
I am using Visual Studio 2010 and Telerik.Web.UI, v.2012.1.215.40 (Dev).
My webform has an embedded RadScheduler. I believe that the RowHeight of a scheduler defaults to 25px. At run-time, however, I change the RowHeight property using the following simple code, based on the view selected by the end-user:
protected void radScheduler_NavigationComplete(object sender, SchedulerNavigationCompleteEventArgs e) {
if (this.radScheduler.SelectedView == SchedulerViewType.TimelineView) {
this.radScheduler.RowHeight = Unit.Pixel(100);
}
else {
this.radScheduler.RowHeight = Unit.Pixel(25);
}
}
That works fine and the row heights sucessfully switch between 25 and 100px as the user changes the view.
Then I added a button below the scheduler to export the current scheduler view to a PDF file. The button click code is very basic and is as follows:
protected void btnExport_Click(object sender, EventArgs e) {
this.radScheduler.ExportToPdf();
}
The click event works fine and successfully creates a PDF file.
When the scheduler is in Timeline view, which successfully displays the row heights at 100px, and the export button is clicked, the row heights are ignored during the export to PDF. The row heights in the PDF file appear to be back at 25px. The webform, which is still open in Timeline view, continues to display the row heights at 100px. How can I resolve this problem?
BTW, if I do away with the NavigationComplete event above, and explicitly add RowHeight="100px" to the <telerik:RadScheduler> ... </telerik:RadScheduler> schema, I still have the same problem when I click my Export to PDF button.
Is there something I can do to maintain the 100px row height whenever I export to PDF?
Thanks,
Steven