Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Laura on Mar 12, 2009 07:55
open dhtmlx forum
Embed File Search in Grid

We tried using a field outside of the grid that browses, but it does not put the file name into the grid.  I'm looking for something similar to a combo box column so that the functionality is embedding directly in the grid.
Answer posted by dhxSupport on Mar 12, 2009 08:17
Ouside filter cannot put value to the grid. It just filter grid with some condition. If you want put some value to the grid you can use setValue("newValue") method
Answer posted by Laura on Mar 12, 2009 08:27
I want to use an embedded file search.  Is that possible?  Am I not being very clear about what I need?  The answers haven't had anything to do with what I want.
Answer posted by dhxSupport on Mar 12, 2009 08:34
dhtmlxGrid hasn't appropriate method which can allow you search ouside the grid.
Answer posted by Laura on Mar 12, 2009 08:36
I don't want to search outside the grid, I want to search INSIDE the grid.
Answer posted by dhxSupport on Mar 12, 2009 08:54

>>I'm looking for something similar to a combo box column so that the functionality is embedding directly in the grid.

To put combox filter to the grid use:

mygrid.attachHeader("#select_filter); 

#select_filter - select box, which value is used as filtering mask;

http://localhost/components/dhtmlxGrid/doc/articles/Custom_content_in_header.htm#grid_ccingrid

Also you can make custom filter using filterBy method http://localhost/components/dhtmlxGrid/doc/articles/Data_filtering_search.html#grid_fsing