or
| function onClientButtonClick1(sender, args) |
| { |
| var btn = args.get_item(); |
| if (btn.get_commandName() == "VR") { |
| var shell = $("[id~='hfRequestUserID']"); |
| var control = shell.get(0); |
| doViewResume(control.value); |
| return false; |
| } |
| if (btn.get_commandName() == "V") { |
| var shell = $("[id~='hfRequestUserID']"); |
| var control = shell.get(0); |
| var oWnd = window.radopen("ViewReason.aspx?userID=" + control.value + "&mode=view", ""); |
| oWnd.center(); |
| return false; |
| } |
| if (btn.get_commandName() == "DM") { |
| var shell = $("[id~='hfRequestUserID']"); |
| var control = shell.get(0); |
| var oWnd = window.radopen("ViewReason.aspx?userID=" + control.value + "&mode=deny", ""); |
| oWnd.center(); |
| return false; |
| } |
| } |
| RadEditor newEditor = new RadEditor(); |
| newEditor.Skin = "Gray"; |
| newEditor.EnableEmbeddedSkins = false; |
| newEditor.EnableEmbeddedBaseStylesheet = false; |
| newEditor.Tools.AddRange(getTools()); |
| newEditor.RealFontSizes.Add(new EditorRealFontSize("1.7em")); |
| newEditor.RealFontSizes.Add(new EditorRealFontSize("1.5em")); |
| newEditor.RealFontSizes.Add(new EditorRealFontSize("1.3em")); |
| newEditor.RealFontSizes.Add(new EditorRealFontSize("1.1em")); |
| newEditor.RealFontSizes.Add(new EditorRealFontSize("1.0em")); |
| newEditor.RealFontSizes.Add(new EditorRealFontSize("0.9em")); |
| newEditor.RealFontSizes.Add(new EditorRealFontSize("0.8em")); |
| ... |
| private IEnumerable<EditorToolGroup> getTools() |
| { |
| IList<EditorToolGroup> toolGroups = new List<EditorToolGroup>(); |
| EditorToolGroup toolGroup = new EditorToolGroup(); |
| EditorTool groupItem; |
| groupItem = new EditorTool(); |
| groupItem.Name = "RealFontSize"; |
| groupItem.Text="Storlek"; |
| //groupItem.Width = "60px"; |
| toolGroup.Tools.Add(groupItem); |
| ... |
| toolGroups.Add(toolGroup); |
| return toolGroups.AsEnumerable(); |
| } |

function
openRadWindowCustomSearch()
{
var oWnd = radopen("Custom_Search_Page.aspx", "RadWindow2" );
oWnd.setSize(700,550)
oWnd.center();
}
Inside Custom_Search_Page.aspx ,I placed a usercontrol ie,<
form id="form1" runat="server">
<div>
<uc1:CustomSearch id="uclCustomSearch" runat="server" />
</div>
</form>