jQWidgets Forums

Forum Replies Created

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

  • Tony C
    Participant

    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 C

    in reply to: jqxColorPicker question jqxColorPicker question #17983

    Tony C
    Participant

    from the demo source, it appears that it should be :-

    $(“#jqxColorPicker”).on(‘colorchange’, function (event) {
    var color = ‘#’ + event.args.color.hex ;
    });

    in reply to: jqxInput problem in 2.7 jqxInput problem in 2.7 #17816

    Tony C
    Participant

    fixed in 2.8 release, thanks 🙂

    in reply to: jqxInput problem in 2.7 jqxInput problem in 2.7 #16892

    Tony C
    Participant

    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>

    Tony C
    Participant

    Thanks 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 += '&reg=' + $("#toSysReg").val() + '&mwa=' + $("#toSysMWA").val() + '&uid=' + $("#uid").val();
    }
    });
Viewing 5 posts - 1 through 5 (of 5 total)