Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82273

Open select control's list

$
0
0

This is a follow-up to this select control question

I understand why the select control's list does not stay open. In the table's click event handler, there are business rules that must pass before Editor goes into inline mode.

This is my simplified code:

    $('#TVM').on('click', 'tbody td:not(:first-child)', function (e) {
        if (editor.display()) {
            editor.blur(); // !important, assure editor is closed and submitted
        }
        var d = table.row(selectedRow).data(); // get current row data
        /// test conditions, and
        if (rulesPass) {
            editor.inline(this);  // go into edit mode  --- but select list is not open
        }
    });

Is there a way, if the editor is a select control, to go into edit mode and have the select list open?

Thanks.


Viewing all articles
Browse latest Browse all 82273

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>