Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

checkbox cellrenderer checkbox repeat selection

Participant ,
Apr 02, 2013 Apr 02, 2013

Hi all,

I create an application which contain a datagrid populated with checkboxes in one column. Datagrid has 10 rows. I have made user to click the checkbox. Based on that i am trying to removing the rows. Row is successfully removed but the selection was there in the next row until mouse over. How to remove the selection or refresh the data grid inorder remove the selection.

Any help is greatly appreaciated.

TOPICS
ActionScript
606
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Participant , Apr 02, 2013 Apr 02, 2013

I have tried dg.draw() method. But it dosen't make any difference.

Translate
Guru ,
Apr 02, 2013 Apr 02, 2013

somewhere in your code you will use a line like setSelection(selectedIndex....), if you remove one row, the indexes get refrefreshed and it seems the next row is inheriting the selection.

There are two possible solutions:

1.dont remove but only hide the specific row

2.deselect the specific index manually after the row has been removed

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 02, 2013 Apr 02, 2013

I am deselecting the index manually and it is reflecting(true / false). selection mark is not going until i took the mouse pointer over.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Apr 02, 2013 Apr 02, 2013

try to force a refresh with the drawNow() method

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 02, 2013 Apr 02, 2013
LATEST

I have tried dg.draw() method. But it dosen't make any difference.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 02, 2013 Apr 02, 2013

Also, could you please gve me the hint to hide a row in a datagrid. Because i couldn't able to find the way to achieve it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines