Printing RasScheduleView MVVM

7 posts, 1 answers
  1. Ala eddine
    Ala eddine avatar
    19 posts
    Member since:
    Feb 2012

    Posted 06 Aug 2013 Link to this post


    Hello,

    I want to print a RadScheduleView using MVVM.

    Any help please.
  2. Answer
    Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 08 Aug 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Amaravathi
    Amaravathi avatar
    5 posts
    Member since:
    Feb 2015

    Posted 05 Feb 2015 in reply to Vladi Link to this post

    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?
  5. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 09 Feb 2015 Link to this post

    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.

     
  6. Amaravathi
    Amaravathi avatar
    5 posts
    Member since:
    Feb 2015

    Posted 09 Feb 2015 in reply to Vladi Link to this post

    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 ].
  7. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 11 Feb 2015 Link to this post

    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.

     
  8. Amaravathi
    Amaravathi avatar
    5 posts
    Member since:
    Feb 2015

    Posted 12 Feb 2015 in reply to Vladi Link to this post

    Thanks vladi, its working.
Back to Top
UI for WPF is Visual Studio 2017 Ready