Skip to main content
Inspiring
April 25, 2017
Question

Datagrids

  • April 25, 2017
  • 1 reply
  • 287 views

Hi,

I have a datagrid with content loaded but I want to disable the "mouse over" and "mouse click" on specific rows. Also, I want to change the colour of the disabled rows as to give an indicator to the user, that these specific rows are disabled.

I thought this would be easy to do but for the life of me, I cannot find any solutions online.

ANY help with this problem would be very much appreciated.

Thanks in advance.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
April 25, 2017

you'll need to make custom class that extends the cellrenderer class.  Adobe ActionScript 3.0 * Customize the DataGrid component

DazFazAuthor
Inspiring
April 26, 2017

Thanks kglad.

Ive added an extra value into the myDP array "disable:true": e.g.

{firstName:"Winston", lastName:"Elstad", note:aLongString, item:100, dissable:true}

And Im using the "MultiLineCell" cellRenderer as a base to start from.

How can I catch that value and disable that particular row within the "cellRenderer"?

kglad
Community Expert
Community Expert
April 26, 2017

i don't have the api memorized so i would look at the available datagrid and related properties, methods and events, Adobe ActionScript® 3 (AS3) API Reference