• Stephan Janssen
    April 13, 2017 at 2:21 am #4122

    Hi,

    In a single select table it doesn’t seem possible to deselect a row when one is checked. Is this expected, or am I missing something?

    SPARK Support
    April 13, 2017 at 11:56 am #4125

    Hi Stephan,

    There is no Out-of-the-Box method to clear the selection. However, you could provide a button with the following logic:

    <script>
    function clearSelection()
    {
    var tbl = page.ui.get(“Table1”);
    if(tbl.getSelectedIndex()){
    tbl.setRecordSelected(tbl.getSelectedIndex(), false);
    }
    }
    </script>

    Then call @clearSelection form the On Click event of the button.

    Regards,

    Stephen P.

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

You must be logged in to reply to this topic.

Start typing and press Enter to search