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

Does radconfirm support themes?

1 Answer 64 Views
Window
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 27 Jul 2011, 01:22 AM
When I bring up a radwindow, like below, it uses the currently set theme.
function ShowImport(sender, args) {
    var radWindow = $find("<%=ImportWindow.ClientID%>");
    radWindow.show();
}

However, when I bring up a radconfirm, it doesn't use the theme and instead uses the default theme.
function DeleteTemplate(sender, args) {
    radconfirm("Do you really want to delete the selected template?", onDeleteTemplate, 300, 100, sender, "Are you sure?");
}

Any idea what gives?

Thanks,
Jamie

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 27 Jul 2011, 11:12 AM
Hi Jamie,

 Do you by any chance have more than one RadWindowManager on the resultant page (e.g coming from user control, MasterPage, etc.) ? If so, please note, that only one of them is "active" when you call radconfirm like that. To call the radconfirm from a specific manager you should call it as a method of the client object of the manager:

function DeleteTemplate(sender, args) {
 var mng = $find("<%=RadWindowManager1.ClientID%>");
  mng. radconfirm("Do you really want to delete the selected template?", onDeleteTemplate, 300, 100, sender, "Are you sure?");
  
}

In this manner your radconfirm will take the skin set to the manager. Another option is to make sure you have set the desired skin to all RadWindowManagers on the page.

All the best,
Svetlina
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.

Tags
Window
Asked by
Mike
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or