Closed HariniMadhi closed 1 year ago
Hi, I've resolved the issue. If any one is interested, check the below code. A more appropriate title would be 'Filtering the columns of Qgrid, without GUI'
def show_highlighted(button1):
grid._handle_qgrid_msg_helper({'field':'Highlighted', 'filter_info':{'field':'Highlighted', 'selected':True, 'type':'boolean', 'excluded':[]}, 'type':'change_filter'})
button1.description = 'Highlight Done'
Hi, consider the below code. I have 2 types of column in my dataframe. I want to call the show_highlighted and show_included button from inside my code - For simplicity, I have linked them to button clicks.
The aim is to show only those rows that contain True (in case of Highlighted) or '1' (in case of Included)
The show_included works as expected, but show_highlight is not working. I've changed 'type':'text' to 'type':'bool', but it still does not work. Can anyone point me the issue? Thanks