Новые сообщения [новые:0]
Дайджест
Горячие темы
Избранное [новые:0]
Форумы
Пользователи
Статистика
Статистика нагрузки
Мод. лог
Поиск
|
30.10.2006, 14:57
|
|||
---|---|---|---|
функция вызывается один раз |
|||
#18+
Привет всем. Ктонить помогите разобраться функция GridOpenRow вызыввается из цикла только один раз. если убрать GridOpenRow то akert вызывается столько раз сколько нужно. Может возврат не правильный? function GridOpenRow(aGrid, cellIndex, aValue) { for (i=0;i<=(aGrid.Rows.length-1);i++) { var acurRow=aGrid.Rows.getRow(i); var ProcCell=acurRow.getCell(cellIndex); if (ProcCell.getValue()==aValue) { acurRow.setHidden(0); } } return; } function aRecipient_ID_CC_AfterCellUpdateHandler(gridName, cellId) { //Получаем грид, который нам нужно обработать var aGrid =igtbl_getGridById(gridName); //Индекс ячейки где лежит чекбокс var checkIndex=3; //Индекс ячейки где лежит ID var IDIndex=0; //Скрываем все строки в зависимом гриде var childGrid=igtbl_getGridById("aRecipient_Per_CC"); HideAll(childGrid); var cellIndex=4; for (i=0;i<=(aGrid.Rows.length-1);i++) { var acurRow=aGrid.Rows.getRow(i); var aID=acurRow.getCell(IDIndex).getValue(); var acheckIndex=acurRow.getCell(checkIndex).getValue(); if (acheckIndex=="true") { alert(aID); GridOpenRow(childGrid, cellIndex , aID); } } } function GridOpenRow(aGrid, cellIndex, aValue) { for (i=0;i<=(aGrid.Rows.length-1);i++) { var acurRow=aGrid.Rows.getRow(i); var ProcCell=acurRow.getCell(cellIndex); if (ProcCell.getValue()==aValue) { acurRow.setHidden(0); } } return; } ... |
|||
:
Нравится:
Не нравится:
|
|||
|
|
start [/forum/topic.php?fid=22&mobile=1&tid=1459202]: |
0ms |
get settings: |
9ms |
get forum list: |
11ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
34ms |
get topic data: |
11ms |
get forum data: |
2ms |
get page messages: |
38ms |
get tp. blocked users: |
1ms |
others: | 16ms |
total: | 126ms |
0 / 0 |