Deselect rows

Hi,

I created a ListGrid with a addRecordClickHandler handler.

I have problem to do these things :

  • Call a function when the user deselect all rows (with Ctrl + Left Click but there is maybe other tips to do that)
  • Forbid to select multiple rows (with Ctrl + Left Click but there is maybe other tips to do that)
  • Call the same function than the addRecordClickHandler when the user uses the right click.

Thank you for your solutions.

Did you have a look at the Showcase -> Grids -> Interactions samples? All your answers can be found there. Specifically look at this sample.

If you are still unable to figure it out, let us what you have tried.

Sanjiv

Thanks that should answer to all my questions…

if the setSelectionType worked…

Someone else has the problem :

Here

I have the last build (r300) and my selection remains multiple (I can again select several rows)

Thank you to fix it or to explain me what is missing

Looking into it, will get back to you on this.

Sanjiv

Fixed in SVN.

Ok, thanks, there is no problem anymore with that.

But this problem is not fixed (form.saveData after form.editSelectedData then form.clearValues don’t make anything)

Is it possible to fix it?

Thank you by advance.