:: Forum >> Version 2 >>

addRow when using multi-row-marker sets the first row as selected

We are using two Grids one to select information from and certain data is then moved over to the grid we actually care about. However, regardless of what we do the first row that is appended as part of this operation is setting the checkbox to true. If I do this opperation multiple times I end up with a checkbox for each new addRow loop but only the first one I add none of the others.

I have gone through and added everthing we needed then removed the problem row, but that is rather problematic and just a workarround. Where is the checkbox being set for the first row added to a multi-row-marker type grid?
Eric York - Liberty Mutual
Wednesday, June 27, 2007
Still need an answer on this... If we cannot resolve or find some suitable workarround we may need to pull ActiveWidgets from our application, per our clients request.
Eric York - Liberty Mutual
Monday, July 9, 2007
Sorry, I still don't understand what is wrong. The added row should become the current row and the only selected row -

this.setCurrentRow(row);
this.setSelectedRows([row]);

This code is located in grid addRow() method -

/source/lib/grid/control.js, line 223
Alex (ActiveWidgets)
Tuesday, July 10, 2007
We do not wany anything selected. Regardless of what I do when adding multiple rows from one grid to another the first row I add to the target grid becomes selected checkbox on, which we do not want.
Eric York - Liberty Mutual
Tuesday, July 17, 2007
I removed the line his.setSelectedRows([row]); from the code to get the behavior we need, thank you. Generally I would not automatically select anything, I would leave that up to the implementor to select what they need, this line automatally selects the row added with no direct way of unselecting it.
Eric York - Liberty Mutual
Tuesday, July 17, 2007



This topic is archived.

Back to support forum

Forum search