Originally Posted by
Vladimir
Hi,
I am doubt that a user works with unconvinience language first (open tabs, works with some data) and only after some time the user wants to choose to another language. If the user has ability to choose required language then he do it first
In any way to make correct language choosing with control recreation is not easy at this moment and requires a lot of coding
Okay I agree - but how can I disable the content resend?
Request:
// Change theme
protected void ChangeTheme(object sender, DirectEventArgs e)
{
Theme myTheme = (Theme)Enum.Parse(typeof(Theme), e.ExtraParams["myTheme"]);
ResourceManager.GetInstance(this).SetTheme(myTheme);
this.Session["Ext.Net.Theme"] = myTheme;
}
Response
{script:"Ext.net.ResourceMgr.setTheme(\"/extjs/resources/css/xtheme-gray-embedded-css/ext.axd?v=18126\");
Ext.net.Notification.show({title:\"Theme\",html:\"The theme was successfully changed\",iconCls:\"icon-information\"});
myLanguageGerman.setChecked(false,true);
myLanguageEnglish.setChecked(true,true);
myThemeDefault.setChecked(false,true);
myThemeGray.setChecked(true,true);
myThemeSlate.setChecked(false,true);
myUserGroup.setTitle(\"User\");
ctl00_Default_ctl05.setText(\"Logout\");
myChangePassword.setText(\"Change Password\");
mySettingsGroup.setTitle(\"Settings\");
ctl00_Default_ctl13.setText(\"Theme\");
myThemeDefault.setText(\"Blue\");
myThemeGray.setText(\"Gray\");
myThemeSlate.setText(\"Slate\");
myLanguage.setText(\"Language\");
myProfileButton.setText(\"Profile\");
myParticularsMenuItem.setText(\"Particulars\");
myOptionsMenuItem.setText(\"Options\");
myHelpButtonGroup.setTitle(\"Help\");
myHelpButton.setText(\"Help\");
myBugMenuItem.setText(\"Report a defect\");
myContactMenuItem.setText(\"Contact\");
myBIButtonGroup.setTitle(\"Business Intelligence\");
myGeotoolsMapButton.setText(\"Map\");
Button3.setText(\"Map\");
Button4.setText(\"Map\");
myGeotoolsButtonGroup.setTitle(\"Geo Tools\");
myGeotoolsButton.setText(\"Map\");
myGeotoolsButton1.setText(\"Map\");
myGeotoolsButton2.setText(\"Map\");"}