DhtmlxGrid - unselect row

Hi,

Is there such an event for unselect a row on a grid?

I found the event onSelectStateChanged but it gets only the id as input so I don’t know if its selected or not, so is there an event for this or I should add some code to check if the row on the given id is selected or not? If so, please tell me how do I write that condition…

Thanks, Efrat

Try to use onSelectStateChange event:
docs.dhtmlx.com/doku.php?id=dhtm … atechanged

sematik,

this event does not trigger when you unselect the row. I tried it using the code below:

[code]

Clear selection[/code]

When I select a row the alert appears - always - even if I change the selection to another row. However, when I click the link to clear the selection - nothing happens.
Is it the way it should be or am I missing something?

If you’re selecting/unselecting the row(s) using the api the events don’t occur.
You may call the required function right in your “Clear selection” href