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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:53:31+00:00 2026-06-14T15:53:31+00:00

Our company moved from dojox/DataGrid to dgrid some time back. Now we are finding

  • 0

Our company moved from dojox/DataGrid to dgrid some time back. Now we are finding out, dgrid doesn’t seem to support dijit/dojox widgets out of the box.

dojox/DataGrid has a formatter() that can return a widget. So easy to doo it there! The API comparison on GitHub says

“dgrid supports formatter functions, but doesn’t support returning a
widget from them .dgrid also has renderCell, which is expected to
return a DOM node. This could ostensibly be used for displaying
widgets (and the editor column plugin does exactly this). Note that
for cell editing purposes, use of the editor column plugin is highly
encouraged.”

How exactly?

I have tried using the editor plugin with {editor: ' ', editorArgs:' '}. This does render a widget but is too restrictive. Eg How do I render a dijit/Button with its label being the value of the cell? Or something more complex, how do I use a (lesser known) dojox/image/MagnifierLite with an <img> generated from a formatter function with the src being the value of the store?

  • 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-06-14T15:53:32+00:00Added an answer on June 14, 2026 at 3:53 pm

    you can use this sample code

    require(
        [
            "dgrid/List",
            "dgrid/OnDemandGrid",
            "dgrid/Selection",
            "dgrid/editor",
            "dgrid/Keyboard",
            "dgrid/tree",
            "dojo/_base/declare",
            "dojo/store/JsonRest",
            "dojo/store/Observable",
            "dojo/store/Cache",
            "dojo/store/Memory",
            "dijit/form/Button",
            "dojo/domReady!"
        ],
    
        function(
            List, 
            Grid, 
            Selection, 
            editor, 
            Keyboard, 
            tree, 
            declare, 
            JsonRest, 
            Observable, 
            Cache, 
            Memory, 
            Button
        ) {
    
            var columns = [
                {
                    label:"Actions", 
                    field:"id", 
                    width: "200px", 
                    renderCell: actionRenderCell
                }
            ];
    
            var actionRenderCell = function (object, data, cell) {
    
                var btnDelete = new Button({
                    rowId : object.id,
                    label: "Delete",
                    onClick: function () {
                        myStore.remove(this.rowId);
                    }
                }, cell.appendChild(document.createElement("div")));
    
                btnDelete._destroyOnRemove = true;
    
                return btnDelete;
    
            }
    
            grid = new (declare([Grid, Selection, Keyboard]))({
                store: myStore,
                getBeforePut: false,
                columns: columns
            }, "grid");
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our company, Company A, may soon be partnering with Company B under some sort
Our company is offering some trainings and asks us what would we want to
Our company is finally coming out of the dark ages and embracing Java 6.
Part of our company has moved to another area and they are being set
The problem: My company puts out a monthly newsletter which I host on our
We recently moved all our tests from NUnit to MsTest. We are using Spring.NET
I have some applications that were transferred from another company to ours. We have
Our company has a large number of projects that have gone from VSS to
My company is in the process of rewriting our software from scratch, and I'm
Here is my company's current process for moving changes from our development server to

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.