DataPager reset hinders printing performance

2 posts, 0 answers
  1. Tyrone
    Tyrone avatar
    1 posts
    Member since:
    Jul 2011

    Posted 21 Jul 2011 Link to this post

    Hi guys,

    The app im working on freezes when I print a gridview that has a datapager on it.The problem comes in when setting the pagesize to 0 
    and then when resetting the pagesize back to its the original size once the export has completed [BeginExport + Exported in code]. And Inbetween this I have the CreateDocument. I am using a radDocument. Everything is fine when exporting to pdf but printing large amounts of data doesnt work. I see someone had a similar problem and it was never resolved.


    protected override void ExportButtonClicked(object sender, RoutedEventArgs routedEventArgs)
                var document = new RadDocument();
                Dispatcher.BeginInvoke(() =>
                    if (BeginExport != null)
                    if (ControlWithGridView != null)
                        document = CreateDocument(ControlWithGridView.GridView);
                    else if (GridView != null)
                        document = CreateDocument(GridView);
                    RadRichTextBox.Document = document;
                    if (Exported != null)
                RadRichTextBox.Print("Prof1t", PrintMode.Native);

  2. Pavel Pavlov
    Pavel Pavlov avatar
    2039 posts

    Posted 27 Jul 2011 Link to this post

    Hello Tyrone,

    I am trying to reproduce your setup here but I am missing the part with the DataPager. Can you please either paste me some more code so I can see the whole context or even better  - a small runnable projectthat demonstrates the issue  over which I can try add some workarounds and send the modified version back to you.

    Pavel Pavlov
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top