jQWidgets Forums

jQuery UI Widgets Forums Grid setcellvalue causes script to stop

This topic contains 2 replies, has 2 voices, and was last updated by  stevewp 12 years, 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • setcellvalue causes script to stop #20175

    stevewp
    Participant

    This line causes my javascript to completely stop.

    Does anyone see what is wrong with it?

    rowindex has a value of 12 at this time and there are like 19 rows in the grid.

     

    $(“#jqxgrid”).jqxGrid(‘setcellvalue’, rowindex, ‘Decedent L Name’, “testme”);

    Here is how I setup the grid:

    $(“#jqxgrid”).jqxGrid(
    {
    width: ‘100%’,
    height: ‘100%’,
    source: dataAdapter,
    showfilterrow: true,
    filterable: true,
    theme: ‘darkblue’,
    columns: [
    { text: ‘UniqueID’, datafield: ‘UniqueID’, width: 150, cellsalign: ‘left’},
    { text: ‘Decedent L Name’, datafield: ‘DecedentLastName’, width: 150, cellsalign: ‘left’},
    { text: ‘Decedent F Name’, datafield: ‘DecedentFirstName’, width: 150, cellsalign: ‘left’ },
    { text: ‘Dt of Death’, datafield: ‘DateofDeath’, width: 100,
    cellsformat: ‘d’, cellsalign: ‘left’ },
    { text: ‘Dt of Birth’, datafield: ‘DateofBirth’, width: 100,
    cellsformat: ‘d’, cellsalign: ‘left’ },
    { text: ‘Purch L Name’, datafield: ‘PurchaserLastName’, width: 150 },
    { text: ‘Purch F Name’, datafield: ‘PurchaserFirstName’, width: 150 },
    { text: ‘Section’, datafield: ‘Section’, width: 50 },
    { text: ‘Block’, datafield: ‘Block’, width: 50 },
    { text: ‘Lot’, datafield: ‘Lot’, width: 50 },
    { text: ‘Space’, datafield: ‘Space’, width: 50 }

    ],
    pager: function (pagenum, pagesize, oldpagenum)
    {
    // callback called when a page or page size is changed.
    }
    });

    setcellvalue causes script to stop #20190

    Peter Stoev
    Keymaster

    Hi stevewp,

    Your code calls the “setcellvalue” with incorrect parameters. There is no defined “Decedent L Name” datafield. That is the column’s text, but the column’s datafield is expected.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    setcellvalue causes script to stop #20236

    stevewp
    Participant

    Thanks – that was it. I was confused.

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

You must be logged in to reply to this topic.