jQWidgets Forums

jQuery UI Widgets Forums DataTable cellsRenderer breaking

This topic contains 1 reply, has 1 voice, and was last updated by  jbambrough 10 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • cellsRenderer breaking #69774

    jbambrough
    Participant

    Hello,

    I am seeing an issue with the jqxDataTable. I’ve defined the dataTable as editable, and I also have one column that uses cellsRenderer. When I click into the editable cell, the cell that uses cellsRenderer goes blank. Is this by design? I would prefer that the data remain in tact for display. Here is a simple code snippet to replicate what I am describing:

                $("#table").jqxDataTable(
                {
                    editable: true,
                    selectionMode: 'singleRow',
                    columns: [
                      { text: 'First Name', dataField: 'First Name', width: 200 },
                      { text: 'Last Name', dataField: 'Last Name', width: 200 },
                      { text: 'Product', dataField: '', width: 250, cellsRenderer: function(row, column, value, rowData){return "renderTest";} }
                    ]
                });
    cellsRenderer breaking #69815

    jbambrough
    Participant

    Just a follow-up to this issue I was having in case this might be useful for someone else. As it turns out all I needed to do was adjust the editSettings to include the following:

    editSingleCell: true

    I originally had this set to false. It appears that the cellsRenderer column was going into ‘edit’ mode because the entire row was being edited vs. the individual cell as I intended. This preserves the data in the column in question

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

You must be logged in to reply to this topic.