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

Apply CssClass to RadWindow in RadFileExplorer

3 Answers 95 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
JP
Top achievements
Rank 2
JP asked on 19 Nov 2013, 02:59 PM

Hi,

I know that the RadFileExplorer registers its own RadWindowManager and RadWindows. I have a custom Css that I use to override certain styles in my Main RadWindowManager. But I have no way (or no idea how) to add my custom class to the RadWindow that the FileExplorer opens, so, the window looks out-of-style with the rest of my site.

I *could* modify my custom css to work modify all windows with a specific skin, but I really don't want to do that.

Is there a way I can do that?

Its needs to be something like this

<div class="RadWindow RadWindow_Silk rwNormalWindow rwTransparentWindow my-custom-class" ...

Thanks

3 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 20 Nov 2013, 03:25 PM
Hello Jean,

You can add a custom CSS class to the nested in FileExplorer WindowManager in a similar way:
protected void Page_Load(object sender, EventArgs e)
{
    RadFileExplorer1.WindowManager.CssClass = "my-custom-class";
}

I hope this helps.

Regards,
Veselina Raykova
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
JP
Top achievements
Rank 2
answered on 20 Nov 2013, 03:55 PM
Thanks for the suggestion, but when I tried, it only applied the class to the WindowManager itself.

I also tried applying the class to each RadWindow in WindowManager.Windows, but there are no windows in the manager. I suspect that the RadWindows are created when the user clicks the upload button?

Anyway, do you have any other suggestions? If not, I guess I will just have to change my css to style radwindows without using the contextual class.

Thanks
0
Accepted
Vessy
Telerik team
answered on 25 Nov 2013, 03:23 PM
Hello Jean,

I am afraid that currently this functionality cannot be achieved with the FileExplorer control. The reason for that is the WindowManager nested in it (and its Windows) does not have full implementation, so you do not have access to all the needed functionality.

The only possible option for the moment is either to use the mentioned by you option or to apply the desired styles by using a custom skin.

Regards,
Veselina Raykova
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
FileExplorer
Asked by
JP
Top achievements
Rank 2
Answers by
Vessy
Telerik team
JP
Top achievements
Rank 2
Share this question
or