I am running into a issue, where I want to assure that any value must be selected in the combobox from its dataprovider.
But it can be deselected by using CTRL+SPACE or Ctrl+Click on selected item.
Is there any way to prevent this to insure that deselection will not performed.
I had managed to prevent ctrl+Space to take action by overriding protected function keyDownHandler , but unable to prevent ctrl+click on selected item.
Please help me
-Thanks and Regards
Is there a way to prevent deselecting a row in Advanced Data Grid? Thanks in advance!
I figured it out myself in the end. Below is the code for the change event handler of the advanced data grid. Hope it helps somebody!
protected function productADG_changeHandler(event:ListEvent):void
if(productADG.selectedIndex == -1)
productADG.selectedIndex = event.rowIndex;
Alert.show("New row - " + event.rowIndex);