This is a migrated thread and some comments may be shown as answers.

RadWindow: inherit SharePoint look and feel

5 Answers 107 Views
Window
This is a migrated thread and some comments may be shown as answers.
Leigh
Top achievements
Rank 1
Leigh asked on 21 Jan 2011, 08:40 PM
Hello,

I've developed a SharePoint web part in Visual Studio 2010 that contains a button that launches a RadWindow:

protected override void CreateChildControls()
{
    Button submitButton = new Button();
    submitButton.Text = "Show window";
    submitButton.ID = "popupButton";
    Controls.Add(submitButton);
  
    popupWindow = new RadWindow();
    popupWindow.OpenerElementID = submitButton.ClientID;
    popupWindow.NavigateUrl = "http://www.google.com";
    Controls.Add(popupWindow);
  
    base.CreateChildControls();             
}

I need the window to act as a modal dialog and inherit SharePoint's look and feel, so that the window matches the rest of SharePoint.  As an example, one of SharePoint 2010's dialogs is attached: sharepoint_ss.png.
My dialog looks like: my_ss.png

How do I make my dialog look like SharePoint's?  It needs to work for MOSS 2007 and SharePoint 2010. 

5 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 24 Jan 2011, 03:55 PM
Hi Leigh,

To achieve this, you can create a custom skin, based on one of the existing ones (for example WebBlue) and to modify it further. More information on how to create a custom skin is available in the documentation.

All the best,
Georgi Tunev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Leigh
Top achievements
Rank 1
answered on 25 Jan 2011, 04:18 PM
Hi Georgi,

If I create a custom skin, and someone changes the theme in SharePoint, will my RadWindow automatically pick up the new theme?

Thanks,
Leigh
0
Leigh
Top achievements
Rank 1
answered on 25 Jan 2011, 04:18 PM
Hi Georgi,

If I create a custom skin, and someone changes the theme in SharePoint, will my RadWindow automatically pick up the new theme?

Thanks,
Leigh
0
Accepted
Georgi Tunev
Telerik team
answered on 27 Jan 2011, 10:04 AM
Hi Leigh,

No, RadWindow cannot automatically change its skin according to the look of the page. You will need to create custom skins that match the look of the themes that you are using and to programatically check what is the current theme before creating / opening RadWindow, so you can set the custom skin to the window.


All the best,
Georgi Tunev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Leigh
Top achievements
Rank 1
answered on 27 Jan 2011, 01:59 PM
Hi Georgi,

Thanks for verifying that.  It would be great if I could tell RadWindow to use certain CSS classes for it's different components, in addition to the current skinning mechanism.  That way, RadWindow can pick up the styles already in use on the page. 

Thanks again,
Leigh
Tags
Window
Asked by
Leigh
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Leigh
Top achievements
Rank 1
Share this question
or