jQuery UI Widgets › Forums › Lists › DropDownList › jqxDropDownList not locked with control
Tagged: dropdown, DropDownList, jqxDropDownList, pop-up, popup, position, resize, window
This topic contains 11 replies, has 3 voices, and was last updated by Peter Stoev 10 years, 4 months ago.
-
Author
-
Greetings,
When the DropDownList is dropped down and then the browser window is resized(IE8-IE11) the DropDownList does not lock down and move with the Dropdown control. I see this does not happen in your default demo code so I’m not sure why this happens. We are using v3.2.1
Appreciate any advice.
Regards,
NetManHello NetMan,
Could you, please share a JSFiddle example demonstrating the issue? Please also make sure you are using the latest version of jQWidgets (3.4.0).
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/I upgraded to the latest version of JQWidgets – 3.4.0 and latest jQuery 1.11.1 but the dropdown will still not move with the control. The MVC view is a bit difficult to get to work at all in JSFiddle.
Regards,
NetManHi NetMan,
Maybe you will be able to reproduce the issue on a smaller scale and share the code here? If this is not possible either, just post a code snippet from your MVC project which is relevant to the dropdownlist (JavaScript initialization and HTML).
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hi, we tried it also without the iframe and it does the same thing. This should be all the pertinent code.
Regards, NetMan<table cellpadding=”0″ cellspacing=”0″ class=”BorderlessTable” style=”width: 100%;”>
<tr>
<td>
@Html.LabelFor(model => model.AgencyId)
</td>
<td>
<div id=’jqxAgencyDropdown’>
</div>
</td>
</tr>
</table>
$(document).ready(function () {
var agencies = [];
var result = ‘@Html.Raw(Json.Encode(Model.Agencies))’var obj = $.parseJSON(result);
$.each(obj, function (index) {
agencies.push({
key: obj[index].Text,
value: obj[index].Value
});
});$(“#jqxAgencyDropdown”).jqxDropDownList({
source: agencies, displayMember: “key”, valueMember: “value”, width: 450, height: 25, theme: ‘ui-redmond’, placeHolder: ‘Select an Agency’, autoDropDownHeight: true, popupZIndex: 0
});
var item = $(“#jqxAgencyDropdown”).jqxDropDownList(‘getItemByValue’, “@Model.AgencyId”);
$(“#jqxAgencyDropdown”).jqxDropDownList(‘selectItem’, item);
$(“#innerListBoxjqxAgencyDropdown”).append(‘<iframe class=”cover” src=”about:blank”></iframe>’);$(‘input:text’).bind(‘keyup blur’,
function (e) {
if (e.type == ‘keyup’)
this.value = this.value.toLocaleUpperCase();
$(“form”).jqxValidator(‘updatePosition’);
});
});
$(window).resize(function () {
$(‘form’).jqxValidator(‘updatePosition’);
});Hi NetMan,
Actually, this is not an issue on your side. The pop-up has an absolute position and does not move along with its parent widget automatically when the browser window is resized.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hi Dimitar,
Why do I not see that behavior in the demo, or am I missing something?
Regards,
WarrenHi Warren,
It is because the demos are shown in iframes.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hi Dimitar,
When can we expect a fix as this would be a heavily used control on our site?
Regards,
NetManHi NetMan,
This behaviour will be fixed in the next version of jQWidgets, ETA mid-August.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Ok, new version has been released (v3.5.0) but this behavior was not addressed.
What happened?
Regards,
NetManHello NetMan,
On browser resize, the DropDownList is closed. This is the behavior by design.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.