Apply CssClass to RadWindow in RadFileExplorer

4 posts, 1 answers
  1. JP
    JP avatar
    9 posts
    Member since:
    May 2006

    Posted 19 Nov 2013 Link to this post

    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

  2. Vessy
    Admin
    Vessy avatar
    1385 posts

    Posted 20 Nov 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. JP
    JP avatar
    9 posts
    Member since:
    May 2006

    Posted 20 Nov 2013 Link to this post

    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
  5. Answer
    Vessy
    Admin
    Vessy avatar
    1385 posts

    Posted 25 Nov 2013 Link to this post

    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.
Back to Top