jQWidgets Forums

Forum Replies Created

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

  • Anglo
    Participant

    OOh it`s my bad thank peter now it working perfectly

    { text: ‘View’, datafield: ‘Edit’, columntype: ‘button’, cellsrenderer: function () {
    return “View”;
    }, buttonclick: function PassValue(row)
    {
    var Value = $(‘#jqxgrid’).jqxGrid(‘getcellvalue’, row, ‘ID’);
    window.open(“stockdetails.aspx?ID=” + Value);
    }
    }


    Anglo
    Participant

    hi peter thank for your advice but i am getting null value by using getcellvalue plz help me regarding this it`s urgent my code is below

    $(document).ready(function () {
    //Getting the source data with ajax GET request
    source = {
    datatype: “xml”,
    datafields: [
    { name: ‘ID’ },
    { name: ‘CHASSIS_NO’ },

    { name: ‘model_description’ },
    { name: ‘MODEL’ },
    { name: ‘FILE_REF’ }
    ],
    async: false,
    record: ‘Table’,
    url: ‘stocklist.aspx/GetCustomers’,
    };
    var dataAdapter = new $.jqx.dataAdapter(source,
    { contentType: ‘application/json; charset=utf-8’}
    );

    $(“#jqxgrid”).jqxGrid({
    width: ‘99%’,
    source: dataAdapter,
    theme: ‘metro’,
    editable: false,
    pageable: true,
    autoheight: true,
    filterable: false,
    showfilterrow: false,

    columns: [
    { text: ‘ID’, dataField: ‘ID’ },
    { text: ‘CHASSIS NO’, dataField: ‘CHASSIS_NO’ },
    { text: ‘MODEL’, dataField: ‘model_description’},
    { text: ‘YEARS’, dataField: ‘MODEL’ },
    { text: ‘Stk No’, dataField: ‘FILE_REF’ },
    { text: ‘View’, datafield: ‘Edit’, columntype: ‘button’, cellsrenderer: function () {
    return “View”;
    }, buttonclick: function PassValue()
    {
    var Value = $(‘#jqxGrid’).jqxGrid(‘getcellvalue’, 0, ‘ID’);
    alert(“QueryString ID is:” + Value);

    //window.open(“stockdetails.aspx?ID=” + paramVal);
    }
    }
    ]
    });
    });

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