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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:35:18+00:00 2026-05-23T19:35:18+00:00

In GridPanel, we all know that we can specify renderer in a column configuration

  • 0

In GridPanel, we all know that we can specify renderer in a column configuration to have customized cell. Now there is this special case which I need to build a customized visual progress bar (canvas) to be drawn into a cell, my question is how to get the el of the cell?

In the renderer callback, available values are value, metadata, record, rowIndex, columnIndex, store, and view. I have tried view.getNode or view.getCell with no luck still.

Thanks you in advance!

/Lionel

EDIT

After some further diggings, I realized my nodes are in fact not ready by the time the renderer is called, that is, the view.getNode and view.getCell is in fact working, but delayed (it returns null all the time)

A workaround is to use setTimeout and renders the elements after the nodes is ready. This is definitely not the best way dealing the case. Any suggestions are welcome anyway 🙂

/Lionel

  • 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-23T19:35:19+00:00Added an answer on May 23, 2026 at 7:35 pm

    Turns out that the answer to this question is to use setTimeout to simulate some delays so the nodes can be added correctly after some delay.

    This is my renderer

    renderer = function (v, meta, rec, r, c, store, view) {
    
        setTimeout(function() {
            var row = view.getNode(rec);
    
            //Capturing the el (I need the div to do the trick)
            var el = Ext.fly(Ext.fly(row).query('.x-grid-cell')[c]).down('div');
    
            //All other codes to build the progress bar
        }, 50);
    };
    

    Ugly, but it works. If no other answers, I will accept it as a valid answer in the next two days.

    Cheers

    /Lionel

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

Sidebar

Related Questions

I have GridPanel with toolbar on it with many buttons. All buttons can't stand
I have a GridPanel which should load a maximum number of resources. If there
I have implemented a Web - Application which features a GridPanel which can be
I have a object that im serializing to a JSON object using JSON.Net. This
I've searched high and low and can't find this and all of my methods
Simple, I have a GridPanel and a FormPanel. Inside the form there is a
In an ExtJS GridPanel, is there a way to design a column whose sole
I haven't found an existing question on this exact problem (there were several that
I need to write an excel-like grid that can have a lot of cells
I currently have a GridPanel with the Ext.ux.RowEditor plugin. Four fields exist in the

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.