Loosing filter when sorting

Hello, as a rookie I need some help from the community.

When I click on a header to change the sorting, my filter has gone. Here is a code snippet:

mygrid.setColSorting("connector,connector,connector,connector"); ... mygrid.init(); mygrid.load("Connectors/tabledata.php?connector=true&dhx_filter[0]=<?php echo $_SESSION['kt_klientId']; ?>");
Thanks a lot in advance.

Solved by changing

mygrid.setColSorting(",,connector,connector,connector,connector");

to

mygrid.setColSorting(",,str,str,str,str");

dhxWins.window(portletID).grid.filterByAll();

This is what I do to fix that.