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 7635451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:25:45+00:00 2026-05-31T07:25:45+00:00

Introduction: I have a flat ArrayCollection of object’s, which i group to create the

  • 0

Introduction: I have a flat ArrayCollection of object’s, which i group to create the dataProvider for an AdvancedDataGrid. In this AdvancedDataGrid i have different branches representing different type of tasks. I want to conditionally change the icon for the leaf nodes in the AdvancedDataGrid based on a date field stored in each object.

For this purpose lets say each Task object contains an id and an updatedDate (Representing when the task was last updated). If the task has not been updated in the last five days (updatedDate+5 < today) the icon of that leaf node(Task) should be red, in constrast to the opposite the leaf icon in the AdvancedDatagrid should be green, e.g. like the image below. In this case task 35 has not been updated in the last 5 days, while 13 and 39 have.

enter image description here

Question: How do i change the leaf icons in the ADG based on the updatedDate of the underlying object? I would think that i have to extend AdvancedDataGrid and override some method, but which and how? Any type of guidance for achieving this particular task is much appriciated!

I have seen easy ways of changing the open and closed icons on the web, but no way of conditionally changing an open node’s icon 🙂

Update: After applying @takteek groupIconFunction solution which always returned the same icon:

enter image description here

The problem is that I need the leaf node’s icons changed, and not the branches.

SOLVED: Used @takteek’s answer, with the exception of using iconFunction instead of groupIconFunction, because i wanted to change the leaf node’s icons, and not the groupIcons 🙂

  • 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-31T07:25:47+00:00Added an answer on May 31, 2026 at 7:25 am

    Your two options are:

    1. Specify agroupIconFunction for the data grid. This gets passed the current item and you return which icon to use, or null to use the default.

    2. Create a subclass of AdvancedDataGrid and override makeListData. This function is responsible for creating the AdvancedDataGridListData object that gets passed to the renderers. You can change the icon and disclosureIcon properties on the list data to what you want. This is probably unnecessary unless you need more control.

    3. Create your own item renderer based on AdvancedDataGridGroupItemRenderer.

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

Sidebar

Related Questions

Introduction I have been so annoyed by applications that have a startup dialog which
Introduction We have an OpenID Provider which we created using the DotNetOpenAuth component. Everything
INTRODUCTION : I have a function(callback) that receives a object as an argument, inside
First a little introduction. We have an SQL Server Express 2008 database, which schema
I'm starting to use Dojo; this is (essentially) my introduction to AJAX. We have
Introduction: I have an AdvancedDataGrid displaying hierarchical data illustrated by the image below: The
Brief introduction: I have this ASP.NET Webforms site with the particularity that it doesn't
Introduction : I have this path in my CakePHP : app/webroot/storage/5/C/_demo/omar.txt , this one
I am reading this bison introduction. I have two questions and it will be
I have a section: \section{Introduction} \label{sec:introduction} I'd like a link to the section where

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.