+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Link Manager hidden

Link Manager hidden

4 posts, 0 answered
  1. higgsy
    higgsy avatar
    336 posts
    Registered:
    05 Aug 2010
    09 Sep 2010
    Link to this post
    Hello,

    I'm using a very basic RadEditor implementation with literally bold, italic, and link/unlink.

    The problem is, when i click the Link button, the LinkManager which is within a radwindow is hidden behind my WebUITypeEditor. Im trying to access the RadWindow that contains the LinkManager using the following code:

    <script type="text/javascript" src="/lib/js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript">

        if (typeof jQuery != 'undefined') {
            // jQuery is loaded

            $(document).ready(function() {

                $(window).load(function() {

                    $('.LinkManager').click(function() {

                        //update the CSS of the radwindow
                        var $oRadWindow = $('.rwNormalWindow rwTransparentWindow', parent.document.body);
                        if ($oRadWindow.length > 0) {

                            $oRadWindow.css('top', '10px');
                            $oRadWindow.css('z-index', '15003');
                            $oRadWindow.css('height', '500px');

                            //the child table also needs its height adjusting
                            $($oRadWindow).children('table').css('height', '500px');

                        } else {

                            alert('Window doesnt exist');

                        }

                    });

                }); //window.load

            });

        } else {
            // jQuery is not loaded
        }

    </script>

    But this never gets access to the window - how can i do it?

    Thanks in advance
    higgsy
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    09 Sep 2010
    Link to this post
    Hello Alastair,

    You can just change the z-index in stylesheet file of the main window - \Sitefinity\Admin\Themes\Default\PropertyDlg.css div.Dialog class as shown below

    div.Dialog    {
        background: #F0F3F4 !important;
        position: absolute;     
        z-index: 3000;
     
         .....
                ....


    Greetings,
    Ivan Dimitrov
    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. higgsy
    higgsy avatar
    336 posts
    Registered:
    05 Aug 2010
    10 Sep 2010
    Link to this post
    Hi Ivan,

    That wont work. The HTML that is generated for the LinkManager is:

    <div id="RadWindowWrapper_ControlEditor1_ctl01_ctl00_ctl00_ctl04_Editor_dialogOpenerEXTERNAL_URLdefault" class="RadWindow RadWindow_WebBlue rwNormalWindow rwTransparentWindow" style="width: 750px; height: 600px; position: absolute; left: 21px; top: -33px; visibility: visible; z-index: 3002;" unselectable="on">

    There is no css class Dialog, and actually it looks like most of the styling is set inline.

    Can you suggest a different file to alter the CSS?

    Thanks
    higgsy
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    10 Sep 2010
    Link to this post
    Hi Alastair,

    Actually this works pretty good at my end  and this should work for you if you call the WebUITypeEditor from a property. I attached a sample video that prove this.

    Best wishes,
    Ivan Dimitrov
    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
Register for webinar
4 posts, 0 answered