jQWidgets Forums

jQuery UI Widgets Forums Layouts Docking Docking not working inside Splitter

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 12 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Docking not working inside Splitter #23078

    hannii
    Member

    Hello,

    I want to use the Docking inside one of my Splitter-Panels but unfortunately it’s not working although I only copied your code together. There is no js-error … Any ideas or is this a bug?

     <script type="text/javascript">
            $(document).ready(function () {
            $('#mainsplitter').jqxSplitter({
            width : 900,
            height : 600,
            orientation : 'vertical',
            panels : [{
                size : 450,
                collapsible : false
            }]
        });
        $('#horizontalsplitter').jqxSplitter({
            width : '100%',
            height : '100%',
            orientation : 'horizontal',
            panels : [{
                size : 300
            }, {
                size : 300
            }]
        });
        $('#modal').jqxWindow({ maxWidth: 800, minHeight: 150, minWidth: 600, height: 150, width: 600,
                    resizable: false, isModal: true, modalOpacity: 0.3
                    });
            });
     $('#docking').jqxDocking({ orientation: 'horizontal', width: 450, mode: 'default', windowsMode: { window0: 'floating'} });
                $('#docking').jqxDocking('setWindowPosition', 'window0', 100, 100);
                $('#docking').jqxDocking('pinWindow', 'window1');
                $('#docking').jqxDocking('hideAllCloseButtons');
                $('#docking').jqxDocking('showAllCollapseButtons');
        </script>
    </head>
    <body>
        <div id="widget">
         <div id="mainsplitter">
                <div id="finalattr">
                    <h3>text</h3>
                    <div style="float: left;" id="docking">
                <div id="panel0">
                    <div id="window0" style="height: 70px; width: 220px;">
                        <div>
                            jqxDock2</div>
                        <div>
                            You cannot drop this object.</div>
                    </div>
                    <div id="window1" style="height: 70px; width: 100px;">
                        <div>
                            jqxDock1</div>
                        <div>
                            You cannot drag this object.</div>
                    </div>
                </div>
                <div id="panel1">
                    <div id="window2" style="height: 70px; width: 100px;">
                        <div>
                            jqxDock3</div>
                        <div>
                            You can drag and drop this object.</div>
                    </div>
                    <div id="window3" style="height: 70px; width: 100px;">
                        <div>
                            jqxDock4</div>
                        <div>
                            You can drag and drop this object.</div>
                    </div>
                </div>
            </div>
                </div>
                <div>
                    <div id="horizontalsplitter">
                        <div id="baseattr">
                        </div>
                        <div id="calcattr">
                         <input type="button" value="Show" id="showWindowButton" />
                        </div>
                    </div>
                </div>
         </div>
            <div>
                <div id="modal">
                 <div>Header</div>
                    <div>
                        <div class="row"><span>Name:</span><input type="text" /></div>
                        <div class="row"><span>Description:</span><input type="text" /></div>
                        <div><button id='save' class='btn'>Save</button><button id='cancel' class='btn'>Cancel</button></div>
                    </div>
                </div>
            </div>
        </div>
    </body>
    Docking not working inside Splitter #23082

    Peter Stoev
    Keymaster

    Hi,

    Please, when you post code, paste it from your project, select it and just press the Format HTML Code button once.

    Here’s a sample with Docking within Splitter.

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta name="keywords" content="jqxDocking, jQuery Docking, jQWidgets, Default Functionality" />
    <meta name="description" content="jqxDocking is a widget which helps you to control and manage multiple windows and
    even the layout of your page. Each window which is part of jqxDocking can be dragged around the Web page,
    docked into docking zones, collapsed into a minimized state, expanded or pinned." />
    <title id='Description'>jqxDocking represents a widget which enables you to manage and
    layout multiple windows on a web page.</title>
    <link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css" />
    <script type="text/javascript" src="../../scripts/jquery-1.10.1.min.js"></script>
    <script type="text/javascript" src="../../scripts/gettheme.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxwindow.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxdatetimeinput.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxcalendar.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxtooltip.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxtabs.js"></script>
    <script type="text/javascript" src="../../jqwidgets/globalization/globalize.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxdocking.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxlistbox.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxscrollbar.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxbuttons.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxpanel.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxsplitter.js"></script>
    <script type="text/javascript">
    $(document).ready(function () {
    var source = [
    'JavaScript Certification - Welcome to our network',
    'Business Challenges via Web take a part',
    'jQWidgets better web, less time. Take a tour',
    'Facebook - you have 7 new notifications',
    'Twitter - John Doe is following you. Look at his profile',
    'New videos, take a look at YouTube.com'
    ];
    var theme = getDemoTheme();
    $('#docking').jqxDocking({ theme: theme, orientation: 'horizontal', width: 680, mode: 'docked' });
    $('#docking').jqxDocking('disableWindowResize', 'window1');
    $('#docking').jqxDocking('disableWindowResize', 'window2');
    $('#docking').jqxDocking('disableWindowResize', 'window3');
    $('#docking').jqxDocking('disableWindowResize', 'window4');
    $('#calendar').jqxCalendar({ theme: theme, width: 180, height: 180 });
    $('#newsTbs').jqxTabs({ theme: theme, width: 310, height: 181, selectedItem: 1 });
    $('#listbox').jqxListBox({ source: source, theme: theme, width: 310, height: 181 });
    $('#zodiak').jqxPanel({ theme: theme, width: 312, height: 180 });
    $('#jqxWidget').jqxSplitter({ theme: theme, width: 800, height: 800, panels: [{size: 700}] });
    });
    </script>
    </head>
    <body class='default'>
    <div id='jqxWidget'>
    <div>
    <div id="docking">
    <div>
    <div id="window1" style="height: 220px;">
    <div>
    Date and Time
    </div>
    <div style="overflow: hidden;">
    <div id="calendar" style="float: left; margin-right: 10px;">
    </div>
    <h3 style="text-align: center; color: #787878;">Sunny</h3>
    <div style="float: left; margin-left: 30px; text-align: center;">
    <img src="../../images/sun-icon.png" alt="Sunny" />
    </div>
    <div style="text-align: left; margin-left: 5px; margin-top: 10px; font-size: 10px; float: right; margin-right: 20px;">
    Mo: 23 °C<br />
    To 25 °C<br />
    We: 27 °C
    </div>
    </div>
    </div>
    <div id="window2" style="height: 220px">
    <div>
    News
    </div>
    <div style="overflow: hidden;">
    <div id="newsTbs">
    <ul style="margin-left: 30px">
    <li>World</li>
    <li>Local</li>
    <li>Sports</li>
    </ul>
    <div>
    <div style="padding: 3px; margin: 10px; width: 150px; height: 84px; float: left;">
    <img src="../../images/news_ie6.jpg" alt="IE6" title="IE6" />
    </div>
    <span style="font-size: 11px;">Microsoft is set to get a little more pushy ensuring
    you have an up-to-date browser and will automatically update Internet Explorer...
    <span style="font-size: 8px;">(BBC)</span> </span>
    </div>
    <div>
    <div style="padding: 3px; margin: 10px; width: 144px; height: 81px; float: left;">
    <img src="../../images/local.jpg" alt="Tennis" title="Tennis" />
    </div>
    <span style="font-size: 11px;">The High Court has dismissed a challenge to laws that
    require immigrant spouses to be able to speak English in order to live in the UK...
    <span style="font-size: 8px;">(BBC)</span> </span>
    </div>
    <div>
    <div style="padding: 3px; margin: 10px; width: 130px; height: 73px; float: left;">
    <img src="../../images/tennis.jpg" alt="Tennis" title="Tennis" />
    </div>
    <span style="font-size: 11px;">British number one Elena Baltacha says Judy Murray is
    a "fantastic" appointment as Great Britain's new Fed Cup captain... <span style="font-size: 8px;">(BBC)</span> </span>
    </div>
    </div>
    </div>
    </div>
    </div>
    <div>
    <div id="window3" style="height: 220px">
    <div>
    Zodiac
    </div>
    <div style="overflow: hidden;">
    <div id="zodiak">
    <div style="padding-right: 20px;">
    <div style="padding: 3px; width: 150px; height: 110px; float: left; margin: 10px;">
    <img src="../../images/leo.jpg" alt="Leo" title="Leo" />
    </div>
    <h3 style="text-align: center; color: #787878;">Leo</h3>
    <span style="font-size: 11px">Individuals born under the zodiac sign of Leo are very
    good looking and have a healthy physique, with a broad forehead. Leo are very intelligent,
    extremely courageous, love their freedom and live by their own rules. Indulgence
    and extravagance is like second nature to them and they love to... </span>
    </div>
    </div>
    </div>
    </div>
    <div id="window4" style="height: 220px;">
    <div>
    E-mail
    </div>
    <div style="overflow: hidden;">
    <div id="listbox">
    </div>
    </div>
    </div>
    </div>
    </div>
    </div>
    <div>
    Panel 2
    </div>
    </div>
    </body>
    </html>

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.