Copy link to clipboard
Copied
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.
I have tried dg.draw() method. But it dosen't make any difference.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
I am deselecting the index manually and it is reflecting(true / false). selection mark is not going until i took the mouse pointer over.
Copy link to clipboard
Copied
try to force a refresh with the drawNow() method
Copy link to clipboard
Copied
I have tried dg.draw() method. But it dosen't make any difference.
Copy link to clipboard
Copied
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.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now