jQWidgets Forums

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Functions of cellsrenderer Functions of cellsrenderer #108012

    Akhil
    Participant

    Hi,

    I have one cells rendering function as shown below
    text: ‘Sync’, width: 250, height:150, align: ‘center’, editable: false, sortable: false, datafield:’Sync’,
    cellsrenderer: function (row, column, value) {

    var rowData = $(‘#jqxgrid’).jqxGrid(‘getrowdata’, row);
    var selectid = ‘sync’ + row
    if (rowData.Sync == true) {

    return ‘<div style=”text-align: center;”><input style=”text-align:center” type=”checkbox” checked id=’ + selectid + ‘></div>’;
    }
    else {
    return ‘<div style=”text-align: center;”><input style=”text-align:center” type=”checkbox” id=’ + selectid + ‘></div>’;
    }
    }

    })
    I have 3 rows and for first row,rowdata variable is correct and from second row row data is incorrect and in cells rendering function value is shown as empty instead of true.can you please suggest what is responsible for that behaviour


    Akhil
    Participant

    Hi,
    If i update value in similar way as as shown above and when i click on update button,i am sending values to database and if again click on edit option,getting error as (cant read property value of null)in (‘beginrowedit;,row,value) method.please provide me the solution

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