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

RadDocument and backgroundworker

3 Answers 93 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Alois
Top achievements
Rank 1
Alois asked on 21 Dec 2011, 09:52 AM
Hi,

is it possible to work programatically with RadDocument within an backgroundworker thread ?
For example execute a call like: RadDocument oDoc = new (RadDocument)

Kind regards
Alois

3 Answers, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 23 Dec 2011, 09:41 AM
Hello Alois,

You can create documents programmatically following the structure of the document outlined in this picture, i.e. create a Section, different Paragraphs and Tables, Spans with different text, etc.
However, this cannot happen on a background thread for now. We have this limitation on our to-do list, but it is still not certain when it will be addressed.

Regards,
Iva Toteva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Mahendran
Top achievements
Rank 1
answered on 20 Mar 2013, 03:27 PM
Hi,

Can we process RadDocument in BackGroundWorker Thread and pass it back to UI thread. couple of reasons,
1) to get the busy indicator working freeing up the UI Thread.
2 ) avoid UI Flickering during rebind 

Regards,
Mahendran
0
Iva Toteva
Telerik team
answered on 25 Mar 2013, 09:50 AM
Hi Mahendran,

As explained above, currently it is not possible to manipulate RadDocument on a thread different than the UI thread in Silverlight, because the creation of some document elements require that UIElements would be created for them.

What you can try is to create the documents server-side, using the WPF version of the controls. Then, you can export them to XAML and send them to the client via a web service. The service can be consumed asynchronously, so in theory it should be possible to show a busy indicator in the meantime. Please, have in mind that the documents must be created in a STA Thread on the server. 

Greetings,
Iva Toteva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
RichTextBox
Asked by
Alois
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Mahendran
Top achievements
Rank 1
Share this question
or