Sorting data entered into input after initialization.

Sorting data entered into input after initialization.

travisaltectravisaltec Posts: 2Questions: 2Answers: 0

My table is loaded via AJAX. After load I have a column with an input field. If you type something in the input field, then sort by a different column the text you entered vanishes completely.

I have tried http://datatables.net/examples/plug-ins/dom_sort.html but the issue still persists.

Here is the basics of initializing the datatable.

var oTable = $('#bomtable').dataTable({
            "autoWidth": true,
            "oLanguage": {
                "sSearch": "",
                "sProcessing": "<img style='background-size: 100%; width: 100%; height: 100%; height: auto !important;' src='/images/loading.gif'>"
            },
            oSearch: { "sSearch": "", "bRegex": false, "bSmart": true },
            "aaSorting": [[5, "desc"]],
            "bInfo": false,
            "bPaginate": false,
            'bFilter': true,
            'bJqueryUI': true,
            'processing': true,
            "serverSide": false,
            "ajax": {
                url: UrlString,
                error: function (xhr, error, thrown) {
                    alert(xhr.responseText + error + thrown);
                    $('#bomtable').dataTable().fnDestroy();
                    $('#searchfilter').css('visibility', 'hidden');
                    $('#table').css('visibility', 'hidden');
                    return;
                }
            },
            "aoColumns": [
                               null,
                               {
                                   "sName": "Desc",
                                   "bSearchable": true,
                                   "bSortable": true
                               },
                               null, null, null,
                               { "sName": "Part", "bSearchable": true, "bSortable": true }, null,
                               null, null,
                               { "sName": "Done", "bSearchable": false, "bSortable": false }, null, null
            ],
            "fnRowCallback" //Left out a the rest due to limits on character length....
        });

Here are the debugging results

http://debug.datatables.net/iteduj

This discussion has been closed.