Skip to main content
A_kameshwaran
Inspiring
April 2, 2013
Answered

checkbox cellrenderer checkbox repeat selection

  • April 2, 2013
  • 1 reply
  • 670 views

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.

This topic has been closed for replies.
Correct answer A_kameshwaran

try to force a refresh with the drawNow() method


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

1 reply

Inspiring
April 2, 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

A_kameshwaran
Inspiring
April 2, 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.

Inspiring
April 2, 2013

try to force a refresh with the drawNow() method