#text_search

Hello Team,

#text_search is searching for the hidden values of the row also.

If a row is defined with a custom checkbox using input tag(), when we use #text_search for the values “2”, it is focusing on the first row instead of the row containing “2” as a string variable.

is there any fix to use #text_search for only front end displaying values instead of hidden variables?

Thanks,
Dumpa

Unfortunately there is no way to use text_search in such way

Hi,

Thanks for the response.
We need ONLY label search, but presently #text_search is searching both for labels and values.

So, can you please provide any suggestion for label search only ?

Thanks,
Dumpa

#text_search uses current content of the cell for search purposes, If you are using HTML element as value of cell - they will be used in search.

You can modify dhtmlxgrid.js, locate there method _get_cell_value and replace

return this.cells3(row, ind)method ? method : “getValue”;

with

return this.cells3(row, ind)method ? method : “getValue”.toString().replace(/<[^>]*>/,"");

which will remove html tags during value retrieving, so during search html tags will be ignored as well.

Hi I am newbie for DHTMLX, Trying to implement DHTMLXGRID header filter, below is my Code

var tree = new dhtmlXGridObject('gridbox');		   
		tree = new dhtmlXGridObject('gridbox');	
		tree.setImagePath("dhtmlx/dhtmlxGrid/codebase/imgs/icons_greenfolders/");
		tree.setHeader("Column A,Column B");
		tree.attachHeader("#text_search,&nbsp;");
	 //	tree.setFiltrationLevel(-2);
	    tree.makeSearch('stext',0);
	 	tree.setInitWidths("300,200");		 	 
		tree.setColAlign("left,left");
		tree.setColTypes("tree,ed");
		tree.enableAutoHeight(false);
		tree.enableAutoWidth(true); 
		tree.setColSorting("str,str");
		tree.init();
		tree.setSkin("dhx_skyblue");
		tree.enableSmartXMLParsing(true);
		tree.enableDistributedParsing(true);
		tree.loadXML(url);

XML code

Location Arizona Arizona SHOC SHOC 52738 52738 1 1G115 matthew Oliver Oliver 1G115 matthew Oliver Oliver 1G116 mike Massoud Massoud 1G116 mike Massoud Massoud 1G125 Keri Lyamn Fuller 1G125 Keri Lyamn Fuller 2 2A041 Allocated McCandless 2A041 Allocated McCandless 2A042 Allocated McCandless 2A042 Allocated McCandless 2A043 Allocated McCandless 2A043 Allocated McCandless Temper Temper 2979 2979 F2 F2 F2A.0101 Juan Torres Reinking F2A.0101 Juan Torres Reinking F2A.0102 Angela Miranda Reinking F2A.0102 Angela Miranda Reinking F2A.0103 Angela Behymer Reinking F2A.0103 Angela Behymer Reinking F4 F4A.0103 Angela Behymer Reinking F4A.0103 Angela Behymer Reinking California California Chat Chat 42121 42121

only filter is not working, I am working on V2.6
Please give me a response.
Thanks in advance

a) try to remove tree.enableDistributedParsing(true);
b) in case of treeGrid 2.6, search functionality will not expand rows to show search result, so if you have match inside a closed branch, it will not be opened.