I am trying to dynamically turn on and off the [AllowDeselect] property in an iGrid, using JavaScript. The need is driven by the lack of a deselect event in the applet. I am updating a row selection count on the web page, as a user selects and deselects iGrid rows. Of course, this becomes a problem when you deselect the last selected row, because the getSelectedRowCount() stays = 1, instead of 0.
So I came up with the idea that I would allow deselection when more than 1 row was selected, but if there is only 1 selected, you then could not deselect it, thus keeping the selected row count correct.
I tried setting the setAllowDeselect(binary) property in the javascript for the selection event. But changing the property doesn't change the iGrid behavior. It stays at the setting in the iGrid page in the Workbench. I can query the isAllowDeselect() after changing it, and it shows the expected value, but the iGrid behavior doesn't change.
I have tried iGrid.update(false) to see if that would enable the change in the deselect property, but this deselects the rows, which doesn't help. Nor did it actually change the iGrid behavior after the update(false) executed.
Does this attribute simply not work, or is my understanding of the property incorrect?