or
<asp:Button runat="server" ID="hiddenTargetControlForModalPopup" style="display:none"/>
<ajaxToolkit:ModalPopupExtender ID="ModalPopupExtenderAddEditSample" runat="server" TargetControlID="hiddenTargetControlForModalPopup" PopupControlID="PanelSamples" BackgroundCssClass="modalBackground" DropShadow="true" > </ajaxToolkit:ModalPopupExtender> <!-- modal popup --> <asp:Panel ID="PanelSamples" runat="server" Style="display: none" CssClass="modalPopup"> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <!-- a bunch of controls and HTML -->
</ContentTemplate> </asp:UpdatePanel></asp:Panel>Is there an easy way to covert this code to a RadWindow? Thanks!
function
OnClientCommandExecuting(editor, args) {
var
commandName = args.get_commandName();
if
(commandName ==
"RealFontSize"
|| commandName ==
"FontSize"
) {
var
selElem = editor.getSelectedElement();
//get the selected element
var
parentElem = selElem.parentNode;
if
(selElem.tagName ==
"LI"
|| selElem.tagName ==
"UL"
) {
selElem.style.fontSize = _fontSizesPx[parseInt(args.get_value() - 1)];
args.set_cancel(
true
);
}
}
}