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

Richtextbox in prism and missing popup windows

13 Answers 213 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Kirk Quinbar
Top achievements
Rank 1
Kirk Quinbar asked on 07 Dec 2010, 08:52 PM
hi,

we have implemented Q3 2010 richtextbox into our prism application and the issue is that none of the popup windows work anymore.
for example, when these actions are done, no window pops up.
- right click on text to display formatting menu
- find button
- insert hyperlink
- insert symbol

any ideas on things that might cause all of the popup windows to stop working in the richtextbox when implemented in a prism application?
the richtextbox seems to behave properly in a standard silverlight app.

13 Answers, 1 is accepted

Sort by
0
Boby
Telerik team
answered on 09 Dec 2010, 01:06 PM
Hi Kirk Quinbar,
All additional UI components for RadRichTextBox, including ContextMenu, SelectionMiniToolBar and all dialogs are located in Telerik.Windows.Controls.RichTextBoxUI.dll, which in its part depends on Telerik.Windows.Controls.dll, Telerik.Windows.Controls.Input.dll, Telerik.Windows.Controls.Navigation and Telerik.Windows.Controls.RibbonBar.dll. Those UI components are loaded by MEF, so you won't have compile-time errors for missing dependencies.
Could you please verify you have added references to all these assemblies?

Greetings,
Boby
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Kirk Quinbar
Top achievements
Rank 1
answered on 09 Dec 2010, 02:52 PM
yes i have every one of those references in our project. other ideas?
0
Kirk Quinbar
Top achievements
Rank 1
answered on 10 Dec 2010, 04:04 AM
ok figured out what is causing the issue and it really has nothing to do with prism. we are using application library caching in our application. when its turned on the popup windows stop working and even spell check doesnt work correct, meaning it cant load the dictionary. when i turned it off, then they all started working again. i have validated that this behavior occurs in a prism application and also in a simple silverlight application, so the type doesnt matter. i am assuming its because the dlls are all contained in zip files and loaded from those at runtime as needed. your MEF loading probably doesnt support that if each dll is in its own zip file.

so how can i get the benefits of application library caching and have the popup windows work and spell check?

0
Accepted
Boby
Telerik team
answered on 10 Dec 2010, 10:12 AM
Hello Kirk Quinbar,
All additional UI components and dictionaries are normally instantiated by MEF. If application library caching is turned on, when MEF tries to find types they are in the assemblies still on the server, thus they cannot be loaded.

As a workaround you can manually instantiate them and  set the following properties:
this.rtb.FindReplaceDialog = new FindReplaceDialog();
this.rtb.InsertHyperlinkDialog = new RadInsertHyperlinkDialog();
this.rtb.ParagraphPropertiesDialog = new RadParagraphPropertiesDialog();
this.rtb.InsertSymbolWindow = new RadInsertSymbolDialog();
this.rtb.ContextMenu = new ContextMenu();
this.rtb.SelectionMiniToolBar = new SelectionMiniToolBar();
this.rtb.InsertTableDialog = new InsertTableDialog();
this.rtb.TablePropertiesDialog = new TablePropertiesDialog();
this.rtb.FontPropertiesDialog = new FontPropertiesDialog();
((DocumentSpellChecker)this.rtb.SpellChecker).AddDictionary(new RadEn_USDictionary(), CultureInfo.InvariantCulture);
somewhere after InitizializeComponents in your constructor.

Don't hesitate to contact us if this doesn't help.

All the best,
Boby
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Kirk Quinbar
Top achievements
Rank 1
answered on 14 Dec 2010, 09:58 PM
Thanks that solved the problem!
0
jaimin
Top achievements
Rank 1
answered on 03 May 2011, 01:53 AM
hi, i used following approach to solve the problem.after InitizializeComponents in constructor i have added,
this.txtRR.InsertSymbolWindow = new RadInsertSymbolDialog();
DocumentSpellChecker)this.txtRR.SpellChecker).AddDictionary(new RadDictionary(), CultureInfo.InvariantCulture);
.txtRR.FindReplaceDialog = new FindReplaceDialog();
.txtRR.InsertHyperlinkDialog = new RadInsertHyperlinkDialog(); 


Its give me error when open it. the error is  "Value does not fall within the expected Range." and when press OK
it open the correct pop up window. i can't understand what that error is??

can you please advice?
Thanks
Jaimin
0
Iva Toteva
Telerik team
answered on 04 May 2011, 09:09 AM
Hi Jaimin,

We used to have this problem, but it was related to the RadRichTextBoxRibbonUI and has already been fixed. If you are using one of the latest releases - Q1 (2011.1.315) or Q1 SP1 (2011.1.419), this error should not be appearing. Provided that is not the case, we would greatly appreciate a sample project to help us track down the issue.

Best wishes,
Iva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
jaimin
Top achievements
Rank 1
answered on 23 May 2011, 02:35 AM
hi
Thanks for the Reply,

i download the latest version. still issue is there. i am getting that message before open up the window.

Then i try to create the sample project, its working well. the message not appearing before opening the pop up Window.

so i am not sure what i am doing wrong in my original project.

Any idea?

Thanks
Jaimin
0
Mike
Telerik team
answered on 26 May 2011, 07:36 AM
Hi Jaimin,

If you are using the application "library caching" option in your project, please refer to Borislav's solution below.

Best wishes,
Mike
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
jaimin
Top achievements
Rank 1
answered on 15 Jun 2011, 04:21 AM

Can you please advice me

((DocumentSpellChecker)this.rtb.SpellChecker).AddDictionary(new RadEn_USDictionary(), CultureInfo.InvariantCulture);


what is RadEn_USDictionary()?
0
Iva Toteva
Telerik team
answered on 16 Jun 2011, 04:31 PM
Hello jaimin,

RadEn_USDictionary is the default dictionary for spell checking in English, which is included in the Telerik.Windows.Documents.Proofing.Dictionaries.En-US.dll. You can read more on spell checking in different languages in our online documentation.

Best wishes,
Iva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
jaimin
Top achievements
Rank 1
answered on 20 Jun 2011, 02:31 AM
hi
Thanks for your reply.

Is RichtextBox support Tab spacing correctly? because its not same as Microsoft Word.
in Word default tab stop is 1.27 cm.

while RichtextBox doesnt seem to handle tabs very well - the tab is only 2.5 chars worth.

please advice.

Jaimin
0
Vesko
Telerik team
answered on 22 Jun 2011, 12:26 PM
Hello jaimin,

Currently tabs in RadRichTextBox have constant width which is equal to what tab look like in the standard Silverlight TextBox. We are planning to add support for tab stops similar to MS Word In some of the upcoming releases, however currently I cannot specify the timeline for the availability of the feature. 

Best wishes,
Vesko
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
RichTextBox
Asked by
Kirk Quinbar
Top achievements
Rank 1
Answers by
Boby
Telerik team
Kirk Quinbar
Top achievements
Rank 1
jaimin
Top achievements
Rank 1
Iva Toteva
Telerik team
Mike
Telerik team
Vesko
Telerik team
Share this question
or