Unselect check column on refesh

I am using get_datatable_options , checkcolumn:true , to show checkbox column. Selected checkbox remains selected after refresh. I want to unselect all. How can I do it?

Hi @shreelaxmi,

If you want to use it in the listview level then apply the client script for the listview.

frappe.listview_settings['Your DocType'] = {
  refresh: function(listview) {
    // Get the List View container
    var $listView = listview.$page;

    // Unselect all rows
    $listView.find('.list-select-all').prop('checked', false);
    $listView.find('.list-row-checkbox').prop('checked', false);
  }
};

Please set your doctype in the script.

When you click on the refresh icon then all rows will uncheck (Unselect).
I hope this helps.

Thank You!

Thanks for reply. I am using for report not doctype. Anything on report checkcolumn?