flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mark goldin <markzolo...@gmail.com>
Subject Search for text in DataGrid's column
Date Fri, 12 Jul 2013 21:18:32 GMT
I need to come up with a solution for searching a text in a column. What I
have now is clearly showing that the following function in the item
renderer:
private function onTextSearchEvent(event:ApplicantformTextSearchEvent):void
{
var _startingPosition:int = Question.text.search(event.textToSearch);
trace(_startingPosition);
if (_startingPosition != -1)
{
Question.selectRange(_startingPosition, _startingPosition +
event.textToSearch.length);
}
}

does not print dataPrvider.length times as what I would want. But how can I
show a number of text instances being found if it does not go thru every
row in the datagrid?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message