I am creating custom dialogs using Telerik.Web.UI. DialogDefinition.
In the code behind
String virtualPath == customdialog.ascx |
DialogDefinition cb3ModalDialog = new DialogDefinition(virtualPath, new DialogParameters()); |
cb3ModalDialog.Modal = true; |
cb3ModalDialog.VisibleTitlebar = true; |
cb3ModalDialog.VisibleStatusbar = true; |
cb3ModalDialog.Width = Unit.Pixel(width); |
cb3ModalDialog.Height = Unit.Pixel(height); |
cb3ModalDialog.VisibleStatusbar = false; |
cb3ModalDialog.Title = dialogTitle; |
this.RadEditorControl.DialogOpener.DialogDefinitions.Add(“CB3ImageManager”, cb3ModalDialog); |
And in javascript
var dialogOpener = editor.get_dialogOpener(); | |
dialogOpener.open('CB3ImageManager', args); | |
Localization JavaScript object on custom dialogs.
I am creating custom dialogs using Telerik.Web.UI. DialogDefinition.
In the code behind
String virtualPath == customdialog.ascx
DialogDefinition cb3ModalDialog = new DialogDefinition(virtualPath, new DialogParameters());
cb3ModalDialog.Modal = true;
cb3ModalDialog.VisibleTitlebar = true;
cb3ModalDialog.VisibleStatusbar = true;
cb3ModalDialog.Width = Unit.Pixel(width);
cb3ModalDialog.Height = Unit.Pixel(height);
cb3ModalDialog.VisibleStatusbar = false;
cb3ModalDialog.Title = dialogTitle;
this.RadEditorControl.DialogOpener.DialogDefinitions.Add(“CB3ImageManager”, cb3ModalDialog);
And in javascript
var dialogOpener = editor.get_dialogOpener();
dialogOpener.open('CB3ImageManager', args);
Now the questions are
1. Is this is proper way to create custom dialogs? Mainly these dialogs loads faster that the way shown here http://demos.telerik.com/aspnet-ajax/editor/examples/customdialogs/defaultcs.aspx
2. How to make localization JavaScript object available on this ascx dialog so that I can design multilingual custom dialog correctly. In my case if write document.write(localization["Flip"]); it gives error.
3. How can I make server controls like RAD Tab strips localized for custom dialogs?
4. What is the syntax/proper method of adding new localization strings to .resx files.