Filtering

Hi,
Thank you for your work on dhtmlxgrid !!!

When i filter on my grid,row don’t deseapear. How can i do this ?

mygrid = new dhtmlXGridObject('mygrid_container'); mygrid.setImagePath("../../../__JS/dhtmlxGrid/codebase/imgs/"); mygrid.setHeader("nrid,ref,libelle"); mygrid.setColSorting("int,str,str"); mygrid.attachHeader(" , ,#text_search"); mygrid.enableAutoWidth(true); mygrid.setEditable(true); mygrid.getCombo(5).put(2, 2); mygrid.init(); mygrid.setSkin("dhx_skyblue"); populateTable(xmlResult); mygrid.enableSmartRendering(true);

In your grid you have “#text_search” it shouldn’t filter the grid but just select the nearest row that contains inputed text.
Please, try to use “#text_filter

Thank you very much, it’s working !!!

One more question, i don’t want users tu use the mouse… How can I do to enable a HotKey to focus on the first light i found in order to use the navigation panel on my keyboard ?

:unamused:

mygrid.load(some, function(){ //after data loading mygrid.selectRow(0); //select first row });

After data loading row will be selected and grid will react on any navigation keys.

You may try to use onKeyPress event:
docs.dhtmlx.com/doku.php?id=dhtm … onkeypress

A working example you can find here:
dhtmlx.com/docs/products/dht … ction.html