Application Wide Settings

5 posts, 2 answers
  1. Tim Byng
    Tim  Byng avatar
    6 posts
    Member since:
    Sep 2005

    Posted 25 Apr 2012 Link to this post

    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
  2. Answer
    Rumen
    Admin
    Rumen avatar
    12849 posts

    Posted 26 Apr 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Tim Byng
    Tim  Byng avatar
    6 posts
    Member since:
    Sep 2005

    Posted 26 Apr 2012 Link to this post

    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.
  5. Answer
    Rumen
    Admin
    Rumen avatar
    12849 posts

    Posted 27 Apr 2012 Link to this post

    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.
  6. Tim Byng
    Tim  Byng avatar
    6 posts
    Member since:
    Sep 2005

    Posted 27 Apr 2012 Link to this post

    OK, thank you.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017