jQWidgets Forums
Forum Replies Created
-
Author
-
January 18, 2017 at 10:32 am in reply to: Problem with JS Editor and Docking Layout Problem with JS Editor and Docking Layout #90769
Perfect
thank you
January 9, 2017 at 12:02 pm in reply to: Problems persisting docking layout Problems persisting docking layout #90420Hi 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
November 16, 2016 at 8:52 am in reply to: How to display entire text of long items ? How to display entire text of long items ? #89078Great ! Thank you
October 25, 2016 at 10:31 am in reply to: jqxwindow inputs not included in $("form").serialize() jqxwindow inputs not included in $("form").serialize() #88469Sorry 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> -
AuthorPosts