jQWidgets Forums
Forum Replies Created
-
Author
-
April 17, 2013 at 8:48 am in reply to: Grid displays only the first row Grid displays only the first row #19412
I see you are using ‘EmpId’ as the id, but it looks like ‘EmpId’ will be the same for every record returned, therefore will only get the first row as there is only 1 unique id.
try this, remove
id: ‘EmpId’
from the source definition, you don’t need to specify id at all.
regards
Tony Cfrom the demo source, it appears that it should be :-
$(“#jqxColorPicker”).on(‘colorchange’, function (event) {
var color = ‘#’ + event.args.color.hex ;
});fixed in 2.8 release, thanks
Thanks wavetrex, that kludge solved the problem
below is my cut down code that demonstrates of the problem. The window (myWin) is created with a z-index of 9001, once typing into the field (myField) commences, the suggestions are created in the DOM at the correct absolute position, but with no z-index (i.e. auto), therefore they are unseen.
<!DOCTYPE html><html> <head> <link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css" /> <script type="text/javascript" src="../../scripts/jquery-1.8.2.min.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxinput.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxwindow.js"></script> </head> <body> <script type="text/javascript"> var countries = new Array("Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Bosnia and Herzegovina", "Botswana", "Brazil", "Brunei", "Bulgaria", "Burkina Faso", "Burma", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Central African Republic", "Chad", "Chile", "China", "Colombia", "Comoros", "Congo, Democratic Republic", "Congo, Republic of the", "Costa Rica", "Cote d'Ivoire", "Croatia", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "East Timor", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Fiji", "Finland", "France", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Greece", "Greenland", "Grenada", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Honduras", "Hong Kong", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, North", "Korea, South", "Kuwait", "Kyrgyzstan", "Laos", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", "Macedonia", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Mauritania", "Mauritius", "Mexico", "Micronesia", "Moldova", "Mongolia", "Morocco", "Monaco", "Mozambique", "Namibia", "Nauru", "Nepal", "Netherlands", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Norway", "Oman", "Pakistan", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Poland", "Portugal", "Qatar", "Romania", "Russia", "Rwanda", "Samoa", "San Marino", " Sao Tome", "Saudi Arabia", "Senegal", "Serbia and Montenegro", "Seychelles", "Sierra Leone", "Singapore", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "Spain", "Sri Lanka", "Sudan", "Suriname", "Swaziland", "Sweden", "Switzerland", "Syria", "Taiwan", "Tajikistan", "Tanzania", "Thailand", "Togo", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela", "Vietnam", "Yemen", "Zambia", "Zimbabwe"); $(document).ready(function() { $("#myWin").jqxWindow({ width : 450, height : 300, resizable : false, autoOpen : false }); $("#myField").jqxInput({ placeHolder : "enter country", height : 25, width : 250, source : countries }); $("#myWin").jqxWindow('show'); }) </script> <div id="myWin"> <div> Pick a Country Window </div> <div> Country <input id="myField" /> </div> </div> </body></html>
February 20, 2013 at 5:05 am in reply to: how to use current 'data' in grid update how to use current 'data' in grid update #15502Thanks Peter
I had thought that it might pick up the current data values like it does with $.ajax
anyway I achieved my requirements by using the beforeSend on the dataAdapter i.e.
var dataAdapterCoy = new $.jqx.dataAdapter(sourceCoy, { beforeSend : function(xhr, s) { s.url += '®=' + $("#toSysReg").val() + '&mwa=' + $("#toSysMWA").val() + '&uid=' + $("#uid").val(); } });
-
AuthorPosts