private function textChangeHandler(event:Event):void
{
switch (event.currentTarget)
{
case grp_cd :
var _grp_cd:String = event.currentTarget.text;
if (_grp_cd.length > 0)
{
for each (var _item:SCObject in _resultList)
{
if (String(_item.grp_cd).substr(0, _grp_cd.length) == _grp_cd.toUpperCase())
{
datagrid.validateNow();
datagrid.selectedIndex = _resultList.getItemIndex(_item);
datagrid.scrollToIndex(datagrid.selectedIndex);
break;
}
}
}
else
{
datagrid.validateNow();
datagrid.selectedIndex = -1;
datagrid.scrollToIndex(0);
}
break;
default :
break;
}
}
.....
<vc:SCTD label="그룹코드" width="20%"/>
<vc:SCTD width="20%">
<vc:SCTextInput id="grp_cd" width="90%" upper="true" maxChars="18" restrict="A-Z0-9" change="textChangeHandler(event)"/>
</vc:SCTD>
[한X] 그리드 텍스트 검색 -> 해당 위치로 스크롤 하기
|
2016.11.15 22:26:21
|
2016.11.15 22:26:21
|
439
|
Aiden
Total of Attached file
0.00 Bytes of 0 files
2017.06.05
2017.06.01
2017.05.23
2017.05.15
2017.02.12
2016.11.15
2016.10.19
2016.10.19
2016.10.14
2016.10.13