Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6026715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:29:09+00:00 2026-05-23T04:29:09+00:00

I need to draw an overlay over a datagrid cell. I want the overlay

  • 0

I need to draw an overlay over a datagrid cell. I want the overlay to sit ontop of the underlying cell data and to display a crosshatch pattern ie: horizontal and vertical lines, like a mini-grid in the cell.

The idea of the overlay is to show that when no data has been received for a while then the data has become old or stale.

I’m pretty sure I need to do something in the updateDisplayList() of the renderer, but I haven’t used the Drawing API so I am not sure how to do this.

Any help would be greatly appreaciated.

Thanks
Mark

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T04:29:10+00:00Added an answer on May 23, 2026 at 4:29 am

    So I suppose you have 2 states for the ItemRenderer, one called “new”, one “old”, right?

    One good news: You don’t need to override updateDisplayList function. Flex SDK 4+ provides you graphics utility named FXG. You can visit this link for more information: http://help.adobe.com/en_US/flex/using/WS145DAB0B-A958-423f-8A01-12B679BA0CC7.html

    In your case, you can do something like this:

    <?xml version="1.0" encoding="utf-8"?>
    <s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" 
                    xmlns:s="library://ns.adobe.com/flex/spark" 
                    xmlns:mx="library://ns.adobe.com/flex/mx" width="50" height="50" click="currentState = 'old'">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <s:states>
            <s:State name="new" />
            <s:State name="old" />
        </s:states>
        <s:BorderContainer width="50" height="50">
            <s:Label text="{data.toString()}" />
        </s:BorderContainer>
        <s:Path data="M 0 10 L 50 10 M 0 20 L 50 20 M 0 30 L 50 30 M 0 40 L 50 40 M 10 0 L 10 50 M 20 0 L 20 50 M 30 0 L 30 50 M 40 0 L 40 50"
                includeIn="old">
            <s:stroke>
                <s:SolidColorStroke color="black" weight="1" />
            </s:stroke>
        </s:Path>
    </s:ItemRenderer>
    

    Idea: Create a path (draw your grid) and put it in state “old”, whenever the item change to state “old”, the grid will appear.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to draw 2D overlay over OpenGL scene. OpenGL is used for 2D
I need to draw vertical and horizontal rectangle / bands (like in Gantt charts)
I need to draw a chart to show the evolution of data in real
I want to draw arrows manually over map. I'm not using the rotation of
I need to draw a circle to display the distance around a point that
I want to be able to draw the number of the date (1-31) over
I need to draw a string over a Infragistics toolbar, and I cannot use
I need to draw a rectange,circle and line and then animate them(press left ->
I need to draw simple alpha maps in xna which depends on current game
I need to draw a lot of lines. I'm using UIBezierPath for drawing lines

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.