Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Datagrids

Engaged ,
Apr 25, 2017 Apr 25, 2017

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.

TOPICS
ActionScript
261
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 25, 2017 Apr 25, 2017

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 26, 2017 Apr 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"?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 26, 2017 Apr 26, 2017
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines