Skip navigation
Currently Being Moderated

Hand Cursor in Datagrid

Jun 10, 2010 2:19 PM

Hi

 

I would want to show a handcursor in a datagrid whenever the mouse hovers a row in the datagrid.

 

The existing useHandCursor = true and buttonmode  = true doesn't seem to be working

 

Whenever I scroll through the rows, the selected row colour is getting changed but the hand cursor is not coming.

 

Any solutions?

 

Regards

mxvx

 

Sample code to check

<?xml version="1.0" encoding="utf-8"?>

<mx:Application

 

 

xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">

 

 

<mx:ArrayCollection id="arr1" >

 

 

<mx:Object>

 

 

<mx:col1> test1 </mx:col1>

 

 

<mx:col2> price1 </mx:col2>

 

 

<mx:col3> album1 </mx:col3>

 

 

</mx:Object>

 

 

<mx:Object>

 

 

<mx:col1> test2 </mx:col1>

 

 

<mx:col2> price2 </mx:col2>

 

 

<mx:col3> album2 </mx:col3>

 

</mx:Object>

 

</mx:ArrayCollection>

 

<mx:DataGrid x="23" y="10" dataProvider="{arr1}" useHandCursor="true" buttonMode="true" >

 

<mx:columns>

 

<mx:DataGridColumn headerText="Column 1" dataField="col1"/>

 

<mx:DataGridColumn headerText="Column 2" dataField="col2"/>

 

<mx:DataGridColumn headerText="Column 3" dataField="col3"/>

 

</mx:columns>

 

</mx:DataGrid>

 

</mx:Application>

 
Replies
  • Currently Being Moderated
    Jun 10, 2010 11:20 PM   in reply to mxvx

    Hi mxvx,

     

    You can get the handcursor by adding the property mouseChildren="false" along with the properties useHandCursor = "true" and buttonmode  = "true"

     

     

    But here the problem is you cannot see the selected row colour is getting changed when you scroll through the rows, but you can see the handCursor for all the rows.

     

    Actually the handSymbol is also appearing for the code you used...but its not appearing fully means its only appearing when you place the mouse in between the two rows ...try to put the mouseOver the bottom of the first row and check it you can see the handSymbol appearing...

     

     

    If this post answers your question or helps, please kindly mark it as such.


    Thanks,

    Bhasker Chari

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points