jQWidgets Forums

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts

  • cainellin
    Participant

    Perfect

    thank you


    cainellin
    Participant

    Hi Borgdan,

    I have the same problem, in some cases missing “contentContainer”.
    NB: in my project the “data-container” div has the same name of the property “title” of layout.

    My workaround based on http://www.jqwidgets.com/community/topic/modifying-jqxdockinglayout-content/#post-83761 is this:

    var copyItem = function (object, target) {
    var current = {};
    for (var property in object) {
    if (object.hasOwnProperty(property) && property !== ‘detachedContent’) {
    if (property === ‘items’) {
    var currentItems = [];
    for (var i = 0; i < object.items.length; i++) {
    copyItem(object.items[i], currentItems);
    }
    current.items = currentItems;
    } else {
    if (property !== ‘docked’)
    current[property] = object[property];
    if (property == ‘title’ && object[‘contentContainer’] == undefined)
    current[‘contentContainer’] = current[‘title’];
    }
    }
    }
    target.push(current);
    };

    I hope this will help you

    Nicola


    cainellin
    Participant

    Great ! Thank you


    cainellin
    Participant

    Sorry I solved,
    I put 2 times the <FORM></FORM> tag like this:

    HTML CODE:

    <div id=”results”></div>
    <form id=”mainForm”>
    <br>

    First name: <input type=”text” name=”fname”><br><br>
    Last name: <input type=”text” name=”lname”><br>

    </form>

    <br>
    <input type=”button” value=”Button” id=’jqxButton’ />
    <input type=”button” value=”Filter” id=’jqxButtonFilter’ />
    <br><br>

    <div id=”filterDialog”>
    <div id=”filterDialogHeader”>
    <span id=”filteDialogCaption” style=”float: left”>Filtro avanzato</span>
    </div>
    <div id=”filterDialogContent” >
    <form id=”modalForm”>
    <div>
    <br>
    First name: <input type=”text” name=”fnameFilter”><br><br>
    Last name: <input type=”text” name=”lnameFilter”><br>
    <br></div>
    <div>
    <input type=”radio” name=”sex” value=”M”>Male<br>
    <input type=”radio” name=”sex” value=”F” >Female<br>
    <input type=”radio” name=”sex” value=”A” checked>All
    </div>
    </form>
    <div>
    <div style=”float: right; margin-top: 15px;”>
    <input type=”button” id=”ok” value=”OK” style=”margin-right: 10px” />
    <input type=”button” id=”cancel” value=”Cancel” />
    </div>
    </div>
    </div>
    </div>

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