Categories | Question details Back To List | ||
Can I do exact text filtering in grid component I have a grid with a column that has two values - Read & Unread - and have set the column header to do filtering via #select_filter It creates the filter options correctly (Blank, Read & Unread) but when I select Read, it still displays the Unread items. I assume this is due to it doing a contains based search rather than exact match - is it possible to set the filtering to be exact value tests? Example XML is: <rows> <head> <beforeInit><call command="setImagePath"><param>../dhtmlx/imgs/</param></call></beforeInit> <beforeInit><call command="preventIECaching"><param>true</param></call></beforeInit> <beforeInit><call command="enableColumnMove"><param>false</param></call></beforeInit> <beforeInit><call command="attachHeader"><param>,,,#select_filter,#select_filter,,#select_filter</param></call></beforeInit> <afterInit><call command="enableHeaderMenu"></call></afterInit> <afterInit><call command="setSkin"><param>light</param></call></afterInit> <column id="column0" sort="na" align="left" width="30" type="ro"></column><column id="column1" sort="na" align="left" width="30" type="ro"></column><column id="column2" sort="date" align="left" width="130" type="ro">Date</column><column id="column3" sort="str" align="left" width="90" type="ro">Client</column><column id="column4" sort="str" align="left" width="90" type="ro">Sent / Received</column><column id="column5" sort="str" align="left" width="250" type="ro">Subject</column><column id="column6" sort="str" align="left" width="90" type="ro">Status</column> </head> <row class="read"> <cell><![CDATA[<div> <img src="#"> </img> </div>]]> </cell><cell><![CDATA[<div> <input type="checkbox" name="deletions" class="deletions"/> </div>]]> </cell><cell>09/12/08 </cell><cell>0000310 </cell><cell>Sent </cell><cell>This is message: 0 </cell><cell>Read </cell> </row> <row class="unread"> <cell><![CDATA[<div> <img src="../content/images/greenflag.gif"/> </div>]]> </cell><cell><![CDATA[<div> <input type="checkbox" name="deletions" class="deletions"/> </div>]]> </cell><cell>09/12/08 </cell><cell>0000310 </cell><cell>Received </cell><cell>This is message: 1 </cell><cell>Unread </cell> </row> </rows> Answer posted on Dec 09, 2008 08:39 >> is it possible to set the filtering to be exact value tests? yes it possible, just use #select_filter_strict instead of #select_filter |