Hello,
     I have designed a custom dataGird which allows user to select 
multiple row without shift key. that meas user just need to right 
click the mouse and drag it over the grid.  For this I have 
override  mouseOverHandler Function in my dataGrid.

  override protected function mouseOverHandler(event:MouseEvent):void
{
         var selectedArr:Array = new Array();
             if(isMouseDown){ 

               try{ 

               selectedArr = dg.selectedIndices; 


               selectedArr.push(mOver.target.listData.rowIndex); 


               dg.selectedIndices = selectedArr; 


              }catch(e:Error){ 
               } 
              }
       }

Issue wich I have been facing is  'mOver.target.listData.rowIndex'  
does not  consistently  return rowIndex ,whenever I move mouse with 
fast pace   
1 ) it throws an error  " Property listData not found on 
mx.controls.listClasses.ListBaseContentHolder 
and there is no default value" .
2) Some dataGrid does not dispatch mouseOver as a result 
mouseUpHandler does get called.
I hope you are convinced with observation.Please let me know you 
have any workAound for the above issue. 

Regards,
Dharmendra











Reply via email to