jQWidgets Forums

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: Checkbox issue in Row Edit Checkbox issue in Row Edit #46208

    Kiran Ch
    Participant

    Hi,
    But it is sending two requests to save the data. and only one is successful.
    Do I change my logic?

    Thank you…
    Kiran

    in reply to: Checkbox issue in Row Edit Checkbox issue in Row Edit #46205

    Kiran Ch
    Participant
    in reply to: Checkbox issue in Row Edit Checkbox issue in Row Edit #46147

    Kiran Ch
    Participant

    Why I am not able to see my links here?

    in reply to: Checkbox issue in Row Edit Checkbox issue in Row Edit #46145

    Kiran Ch
    Participant

    Hi,
    Here are the screenshots.

    Regards,
    Kiran Ch

    in reply to: Checkbox issue in Row Edit Checkbox issue in Row Edit #46118

    Kiran Ch
    Participant

    how can i show my local out put image here……?image is not uploading through my
    system

    in reply to: Remove Item from MultiSelect Remove Item from MultiSelect #46115

    Kiran Ch
    Participant

    Hi,
    I am also having the same problem with removing selected item from multi-select combo box.
    In the demo which you are provided is working fine. You are using an array of values to bind to combo box.

    See the below code of you and mine.
    Same example, if I bind with value member and display member, I am unable to remove the selected item.

    function ComboboxDemo() {
            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");
            // Create a jqxComboBox
            $("#jqxComboBox").jqxComboBox({
                source: countries,
                multiSelect: true,
                width: 350,
                height: 25,
                theme: 'arctic'
            });
            $("#jqxComboBox").jqxComboBox('selectItem', 'United States');
            $("#jqxComboBox").jqxComboBox('selectItem', 'Germany');
        }
    

    Modified code

    function ComboboxDemo1() {
            var _countries = new Array();
            _countries = [{
                "ID": 1,
                "Name": "A"
            },
            {
                "ID": 2,
                "Name": "B"
            },
            {
                "ID": 3,
                "Name": "C"
            },
            {
                "ID": 4,
                "Name": "E"
            }
            ];
            
            // Create a jqxComboBox
            $("#jqxComboBox").jqxComboBox({
                source: _countries,
                multiSelect: true,
                width: 350,
                displayMember: 'Name',
                valueMember: 'ID',
                height: 25,
                theme: 'arctic'
            });
        }
    

    UI:
    <div style="margin-top: 5px;" id='jqxComboBox'>

    Am I doing any thing wrong?
    Can you please suggest me.

    Regards,
    Kiran

    in reply to: Checkbox issue in Row Edit Checkbox issue in Row Edit #46028

    Kiran Ch
    Participant

    Hi this is the code for issue what we posted……

    <script src=”~/Scripts/jquery-2.0.3.js”></script>
    <link href=”~/jqwidgets/styles/jqx.base.css” rel=”stylesheet” />
    <link href=”~/jqwidgets/styles/jqx.arctic.css” rel=”stylesheet” />
    <script src=”~/jqwidgets/jqxcore.js”></script>
    <script src=”~/jqwidgets/jqxdata.js”></script>
    <script src=”~/jqwidgets/jqx-all.js”></script>
    <script src=”~/jqwidgets/jqxgrid.js”></script>
    <script src=”~/jqwidgets/jqxgrid.pager.js”></script>
    <script src=”~/jqwidgets/jqxgrid.sort.js”></script>
    <script src=”~/jqwidgets/jqxgrid.filter.js”></script>
    <script src=”~/jqwidgets/jqxgrid.selection.js”></script>
    <script src=”~/jqwidgets/jqxgrid.edit.js”></script>
    <script src=”~/jqwidgets/jqxgrid.columnsresize.js”></script>
    <script src=”~/jqwidgets/jqxbuttons.js”></script>
    <script src=”~/jqwidgets/jqxlistbox.js”></script>
    <script src=”~/jqwidgets/jqxdropdownlist.js”></script>
    <script src=”~/jqwidgets/jqxmenu.js”></script>
    <script src=”~/jqwidgets/jqxcheckbox.js”></script>

    <script type=”text/javascript”>
    $(document).ready(function () {
    var source =
    {
    datatype: ‘json’,
    datafields: [
    { name: ‘UserId’ },
    { name: ‘UserName’ },
    { name: ‘FirstName’ },
    { name: ‘LastName’ },
    { name: ‘Status’,type: ‘bool’ }
    ],
    id: ‘UserId’,
    url: ‘Home/binddata’,
    updaterow: function (rowid, rowdata, commit)
    {
    var rowindex = $(“#jqxgrid”).jqxGrid(‘getrowboundindexbyid’, rowid);
    function getrowstoupdate()
    {
    var rowdata1 = {};
    rowdata1.Id = rowdata.Id;
    rowdata1.CountryId = countryid;
    rowdata1.StateId = StateId;
    rowdata1.CityName = rowdata.CityName;
    return rowdata1;
    }
    var data1 = JSON.stringify(getrowstoupdate());
    $.ajax({
    url: ‘/Home/UpdateData’,
    data: data1,
    cache: false,
    type: ‘POST’,
    contentType: ‘application/json; charset=utf-8’,
    success: function (data) {
    // alert(“Data updated Successfully………”);
    }
    });
    commit(true);
    }
    };
    var dataAdapter = new $.jqx.dataAdapter(source);
    $(“#jqxgrid”).jqxGrid({
    width: 950,
    source: dataAdapter,
    theme: ‘arctic’,
    pageable: true,
    autoheight: true,
    sortable: true,
    editable: true,
    filterable: true,
    editmode: ‘selectedrow’,
    enabletooltips: true,
    columns: [
    { text: ‘UserId’, datafield: ‘UserId’, width: 250, hidden: true },
    { text: ‘UserName’, datafield: ‘UserName’, width: 250 },
    { text: ‘FirstName’, datafield: ‘FirstName’, width: 250 },
    { text: ‘LastName’, datafield: ‘LastName’, width: 250 },
    { text: ‘Status’, datafield: ‘Status’,columntype: ‘checkbox’, width: 250,type:’bool’ },
    ],
    });
    });

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