3.0.5

Remove row highlight after action

Hi,

I have a grid in which a user can select a row. When the user clicks on a row, the selected row is highlighted as per the default behaviour (dark blue) and the contents are displayed in input boxes below the grid to allow for editing. The user then clicks the save button to refresh the grid with the edited values.

Is is possible to, at this stage, unhighlight the row that was selected - i.e. take the dark blue row selection away?

Thanks
Justin
February 3,
Try this:

obj.setSelectionProperty("values", []); // deselect all rows in the grid
Rick Mellott
February 3,
Thanks Rick. It works perfectly.
Justin
February 4,
Justin,
Can I pls have the code.
BDC
January 3,
for 2.0, you can do
obj.setSelectRows([]);
to deselect all the rows
Caleb
July 12,
buttonClear.onClick = function()
{
obj.setSelectionProperty("values", []);
inputCode.setControlText("");
etc,etc

have implemented both methods shown to no avail, any alternatives
Kevin
November 27,
obj.setSelectedRows([-1]);

seems to work
Kevin
November 27,
obj.setSelectedRows([]);

works too.
Kevin
November 27,

This topic is archived.

See also:


Back to support forum