Hi, i want to add the RadSpell-control programmatically to my page and be able to set it language. Adding the control programmatically is no problem but only when I don't want to change the default language, which is en-US.
when I set it to de-DE or fr-FR (both lib's are in the App_Data-folder), the control is rendered, but when I click the button, nothing happens.
I got this code:
I tried this in onInit and prerender. As said, the spell button is shown, but it only works when I leave out all the lines after dictionarylanguage. Otherwise it shows, but clicking does not trigger anything.
What should I do?
Version: 2008.03.1105.20
Teste both in FF 3 and IE 6
--------------- Edit ---------------------
When I put a RadSpell control on the page and set the properties programmatically, it is also working. However I want to be able to add the RadSpell control on the page based on some system settings.
when I set it to de-DE or fr-FR (both lib's are in the App_Data-folder), the control is rendered, but when I click the button, nothing happens.
I got this code:
| RadSpell spell = new RadSpell(); |
| spell.ButtonType = Telerik.Web.UI.ButtonType.PushButton; |
| spell.ControlToCheck = tb1.ID; |
| spell.DictionaryLanguage = "fr-fr"; |
| spell.SupportedLanguages = new string[] { "en-us, English, de-de, German, fr-fr, French" }; |
| spell.DictionaryPath = @"~/App_Data/RadSpell"; |
What should I do?
Version: 2008.03.1105.20
Teste both in FF 3 and IE 6
--------------- Edit ---------------------
When I put a RadSpell control on the page and set the properties programmatically, it is also working. However I want to be able to add the RadSpell control on the page based on some system settings.
| RadSpell spell = (Page.Form.FindControl("clientSpell") as RadSpell); |
| spell.ButtonType = Telerik.Web.UI.ButtonType.PushButton; |
| spell.ControlToCheck = tb1.ID; |
| spell.DictionaryLanguage = "de-DE"; |
| //spell.SupportedLanguages = new string[] { "en-us, English, de-de, German, fr-fr, French" }; |
| //spell.DictionaryPath = @"~/App_Data/RadSpell"; |
| this.form1.Controls.Add(spell); |