RadDock dockableObject = new RadDock();
dockableObject.Visible = true;
dockableObject.Style["margin-top"] = "5px";
DockCommand cmdWebPart = new DockCommand();
DockCloseCommand cmdCloseCommand = new DockCloseCommand();
DockExpandCollapseCommand cmdExpandCollapse = new DockExpandCollapseCommand();
cmdWebPart.Text = "View Information";
dockableObject.Commands.Add(cmdWebPart);
dockableObject.Commands.Add(cmdCloseCommand);
dockableObject.Commands.Add(cmdExpandCollapse);
cmdCloseCommand.AutoPostBack = true;
Whenever i add commands dynamically, command buttons are not showing up correctly even if im using default skins.
Your response is truly appreciated.
Thanks,
Rex
I have a silverlight app that calls javascript function in the host page to shows RadWindow. I also added an html button to test the functionality. When Window shows up I cant click on the html button ( which is expected) but I can click on the silverlight area (which is not expected). Also when I click on silverlight area, it hides the RadWindow. I moved radwindow above, after and inside div but it makes not difference.
<
head>
<script type="text/javascript">
function ShowModalWindow(url) {
var oWnd = $find("<%=RadWindow1.ClientID%>");
oWnd.setUrl(url);
oWnd.show();
}
</script>
</
head>
<
body style="height: 100%; margin: 0;">
<form id="form1" runat="server" style="height: 100%;">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div style="height: 100%;">
<button onclick="ShowModalWindow('http://www.google.com'); return false;">
Click..
</button>
<tk:RadWindow ID="RadWindow1" runat="server" Modal="true" VisibleStatusbar="true"
VisibleTitlebar="true" AutoSize="true">
</tk:RadWindow>
<asp:Silverlight ID="Xaml1" runat="server" Source="~/ClientBin/App.xap"
MinimumVersion="2.0.31005.0" Width="100%" Height="100%" />
</div>
</form>
</
body>