Categories | Question details Back To List | ||
dhtmlXGrid text filter I am wondering if there is a way to implement regular expressions or something to that effect in a text filter in the header of a dhtmlXGrid? I was wondering if I could write my own code if I knew where the actual search is taking place. Can you tell me which .js file and the line number(s) the actual search is taking place? Or perhaps you know of a better way to go about this? Thanks! Answer posted by Support on Nov 21, 2008 07:57 Technically you can call filter by with some custom code , similar to grid.filterBy(index,function(value){ if (any_kind_of_check(value)) return true;// allow row return false; //deny row }) http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Data_filtering_search.html#grid_fsing If you want to modify existing code, the key point is dhtmlxgrid_filter.js, line 46 this._get_cell_value(this.rowsBuffer[i],column).toString().toLowerCase().indexOf(value)==-1 it can be changed to any other type of comparation logic |