resize radwindow from web explorer for previewing

3 posts, 1 answers
  1. Hamdy
    Hamdy avatar
    41 posts
    Member since:
    Dec 2009

    Posted 10 Apr 2010 Link to this post

    I have a web explorer
    when i click on an image file it is opening a pop up (radwindow) to preview this image

    the popup is not re sizable
    how can I set it
  2. Answer
    Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 12 Apr 2010 Link to this post

    Hi Hamdy,

    RadFileExplorer does not offer the required functionality out-of-the-box. However, you can achieve it, by attaching a handler method to the window show event of the RadFileExplorer's windowManager, e.g.:
    function OnClientLoad(oExplorer, args)
    {
        //get reference to the windowManager
        var windowManager = oExplorer.get_windowManager();
        //attach handler to show event
        windowManager.add_show(addShowHandler);
    }
     
    function addShowHandler(oWnd, args)
    {
        oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Resize + Telerik.Web.UI.WindowBehaviors.Close);
    }


    All the best,
    Dobromir
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Hamdy
    Hamdy avatar
    41 posts
    Member since:
    Dec 2009

    Posted 13 Apr 2010 Link to this post

    it works ,thanks
Back to Top