jQWidgets Forums

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Time input inside JqxGrid Time input inside JqxGrid #80159

    jishnu2026
    Participant

    Thank you Hristo For your replay
    But i have a error
    Uncaught Invalid property: showTimeButton
    How I can Solve This Error
    Now iam using jqwidgets version v3.5.0

    in reply to: Time input inside JqxGrid Time input inside JqxGrid #80126

    jishnu2026
    Participant
    in reply to: Display listbox in 2 column Display listbox in 2 column #79580

    jishnu2026
    Participant

    i need to use listbox like this


    jishnu2026
    Participant

    Hi this is my sample ajax data

    {
        "TotalRows1": 31,
        "Rows1": [
            {
                "Address": "abc",
                "Age": 32,
                "Fullname": "Seena"
            },
            {
                "Address": "abc",
                "Age": 32,
                "Fullname": "Mohan"
            },
            {
                "Address": "abc",
                "Age": 32,
                "Fullname": "RAVI"
            },
            {
                "Address": "abc",
                "Age": 32,
                "Fullname": "rahul"
            },
            {
                "Address": "abc",
                "Age": 32,
                "Fullname": "rahul"
            },
            {
                "Address": "abc",
                "Age": 32,
                "Fullname": "rahul"
            },
            {
                "Address": "abc",
                "Age": 32,
                "Fullname": "ssf"
            },
            {
                "Address": "abc",
                "Age": 32,
                "Fullname": "ss"
            },
            {
                "Address": "abc",
                "Age": 32,
                "Fullname": "abc"
            },
            {
                "Address": "abc",
                "Age": 32,
                "Fullname": "abc"
            }
        ],
        "ItemCount": 10
    }

    jishnu2026
    Participant

    This is my complete Code
    var searchpgno = 1;
    var ppagesize = 10;

    function GetSearch()
    {
    var url1 = ‘/customer/Search/?searchpgno=’ + searchpgno +’&pagesize=’+ppagesize;
    var jsonsearch;
    $.ajax({
    type: ‘POST’,
    url: url1,
    async: false,
    success: function (data) {
    if (data == ”) {

    }
    else {
    jsonsearch = data;
    }
    },
    error: function (response) {
    alert(response.error)
    }
    });

    var source =
    {
    localdata: jsonsearch,
    datatype: “json”,
    datafields: [
    {name:’Fullname’},
    {name:’Age’},
    {name:’Address’}
    ],
    id:’id’,
    root:’Rows1′,
    type: ‘POST’,
    beforeprocessing: function (data) {
    var ParsData = JSON.parse(data);
    source.totalrecords = ParsData.TotalRows1;
    },
    };
    var dataAdapter = new $.jqx.dataAdapter(source);
    $(“#jqxCustomerSearch”).jqxGrid(
    {
    source: dataAdapter,
    editable: false,
    autoheight: false,
    sortable: true,
    height: 455,
    width: 500,
    rowsheight: 55,
    theme: theme,
    columnsresize: true,
    showemptyrow: true,
    selectionmode: ‘singlerow’,
    pageable: true,
    virtualmode: true,
    pagermode: ‘default’,
    rendergridrows: function (obj) {
    return obj.data;
    },
    pagerheight: 45,
    columns: [
    { text:’Full Name’, datafield: ‘Fullname’, width: ‘6%’},
    { text: ‘Age’, datafield: ‘Age’, width: ‘12%’ },
    { text: ‘Address’, datafield: ‘Address’, width: ‘18%’ },
    { text: AHouse, datafield: ‘cHouse’, width: ‘13%’ },

    ]
    });
    // End – Setup Data Grid

    }

    $(‘#jqxCustomerSearch’).on(‘pagechanged’, function (event) {
    var args = event.args;
    var pagenum = args.pagenum;
    var pagesize = args.pagesize;
    searchpgno = pagenum+1 ;
    ppagesize = pagesize;
    GetSearch();
    });

    json Data format:
    =================

    Object {TotalRows1: 31, Rows1: Array[10], ItemCount: 10 }


    jishnu2026
    Participant

    thanks Peter Stoev … i got it

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