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

Printing RasScheduleView MVVM

6 Answers 185 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Ala eddine
Top achievements
Rank 1
Ala eddine asked on 06 Aug 2013, 01:26 PM

Hello,

I want to print a RadScheduleView using MVVM.

Any help please.

6 Answers, 1 is accepted

Sort by
0
Accepted
Vladi
Telerik team
answered on 08 Aug 2013, 07:38 AM
Hi,

In the current version of RadScheduleView there isn't a built-in feature that could be used to print the control in a MVVM friendly approach out of the box. But it is easily achievable with the use of the default PrintDialog of the framework and creation of a custom ICommand.

I created and attached a sample project that shows a possible approach that could be used to achieve printing of the control in a MVVM friendly way, hope this is helpful.

Regards,
Vladi
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Amaravathi
Top achievements
Rank 1
answered on 05 Feb 2015, 02:03 PM
Hi Vladi,

Can we print the "scheduleview" with out using the "Canvas" container.
Because if we use the "Canvas" container we can't scroll the "scheduleview", its printing correctly but i need even the scroll option for the "scheduleview".

Can you please help?
0
Vladi
Telerik team
answered on 09 Feb 2015, 09:46 AM
Hi Amaravathi,

As mentioned the current version of RadScheduleView does not have a built-in printing mechanism. In order to achieve printing of its areas a custom implementation should be added. The described approach uses a Canvas in order to show entire ScheduleView's area so that it could be printed using the frameworks printing services. Without adding such container it is not possible to easily show RadScheduleView's timeline area.

If such container is not desired in order to take advantage of the control's built-in ScrollViewers you could implement a custom solution which will add a Canvas container before a PrintDialog is used and remove it after the printing sequence has completed. Hope this is helpful.

Regards,
Vladi
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Amaravathi
Top achievements
Rank 1
answered on 09 Feb 2015, 12:25 PM
Hi Vladi's,

Thanks for your reply, can u please attach a sample project. how we can do it [ implement a custom solution which will add a Canvas container before a PrintDialog is used and remove it after the printing sequence has completed ].
0
Vladi
Telerik team
answered on 11 Feb 2015, 08:30 AM
Hi Amaravathi,

The described approach of removing a WPF control at runtime is our of the scope of the RadScheduleView control and we do not have a sample project of such implementation which we can share with you. This is a general scenario which could be implemented in the WPF framework and there are many implementation patterns that could be used.

I suggest you to search the web for possible implementations of removing and adding UI controls at runtime. Here you can find information on the basic implementation of removing such elements.

Regards,
Vladi
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Amaravathi
Top achievements
Rank 1
answered on 12 Feb 2015, 01:55 PM
Thanks vladi, its working.
Tags
ScheduleView
Asked by
Ala eddine
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Amaravathi
Top achievements
Rank 1
Share this question
or