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

Application Wide Settings

4 Answers 72 Views
Spell
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 25 Apr 2012, 06:50 PM
I am currently updating the RadSpell to the latest version in one of my projects. With the older version, I was able to specify application wide settings in the ConfigFile.xml file. It appears that this feature has been removed.

Is there anyway to set properties application wide so that I don't have to specify the same settings over and over again throughout the application? For example, let's say that I wanted to change the default values for WordIgnoreOptions and FragmentIgnoreOptions. I would like this to be consistent throughout the application. It would be nice if I could specify this just once (like I was able to with ConfigFile.xml) and not have to worry about setting the same values for every instance of RadSpell.

I would also like to be able to use the current culture for the Language and DictionaryLanguage properties. I realize I can do this in code for each instance of RadSpell, but I'm looking for something a little more DRY.

Thanks,
Tim

4 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 26 Apr 2012, 02:04 PM
Hello,

You can use ASP.NET Themes and skin files to configure multiple instances of the spellchecker or other controls for a single location. You can see this help article for more information: Using Themes.

Best regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Tim
Top achievements
Rank 1
answered on 26 Apr 2012, 05:22 PM
Thank you, Rumen. Using the a skin file gives me similar results that the ConfigFile.xml file used to. I think it was a good idea to remove ConfigFile.xml when ASP.NET 2.0+ has functionality that can achieve the same thing.

Can you please let me know if there's a way to set the Language and DictionaryLanguage automatically based on the current culture? For example, if the current culture name is fr-CA, I would like the RadSpell Language and DictionaryLanguage properties to be automatically set to fr-CA.
0
Accepted
Rumen
Telerik team
answered on 27 Apr 2012, 02:33 PM
Hi,

RadSpell does not offer the requested ability to automatically gets its language and dictionary language from the culture settings of the site, but you can check the culture programmatically and set the Language and DictionaryLanguages properties according to its value.

Best regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Tim
Top achievements
Rank 1
answered on 27 Apr 2012, 03:43 PM
OK, thank you.
Tags
Spell
Asked by
Tim
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Tim
Top achievements
Rank 1
Share this question
or