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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:58:30+00:00 2026-06-11T01:58:30+00:00

Hey guys i have another question about dojo. This time it has to do

  • 0

Hey guys i have another question about dojo.

This time it has to do with data stores(Memory) and a custom template.

So i have a dataStore build from Json Data and i am wondering how i can create a custom template instead of a grid to display that data.

let’s say i have the following JSON data :

var employees = [
        { id: 1, name: "Jim", department: "accounting" },
        { id: 5, name: "Bill", department: "engineering" },
        { id: 3, name: "Mike", department: "sales" },
        { id: 4, name: "John", department: "saleas" }

and i create my data store like so:

employeeStore = new Memory({ data: employees });
employeeStore = new Memory({ data: employeeStore.query({}, { sort: [{ attribute: "id"}] }) });

Now what i want to do is display that data in this template HTML:

<div data-dojo-attach-point="someNode">
<div data-dojo-attach-point="checkbox" data-dojo-type="dijit/form/CheckBox"></div>
<div data-dojo-attach-point="id"></div>
<div data-dojo-attach-point="name"></div>
<div data-dojo-attach-point="department"></div>

I want to display the data in the following way (style is not important now)

I cannot add an image so here is the resulting HTML I am looking for.

    <div>
<div>1</div>
<div>Jim</div>
<div>accounting</div>
</div>
<div style="clear:both;"></div>
<div>
<div>3</div>
<div>Mike</div>
<div>sales</div>
</div>
<div style="clear:both;"></div>
<div>
<div>4</div>
<div>John</div>
<div>sales</div>
</div>
<div style="clear:both;"></div>
<div>
<div>5</div>
<div>Bill</div>
<div>engineering</div>
</div>
<div style="clear:both;"></div>

Thanks in advance for your help!
Solon

  • 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-11T01:58:31+00:00Added an answer on June 11, 2026 at 1:58 am

    Sounds like you want to create a template-widget. While I have no advice since I haven’t used this part of the dojo toolkit, it sounds like what you need:

    https://dojotoolkit.org/documentation/tutorials/1.8/templated/

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

Sidebar

Related Questions

Hey guys I have one more question lol. I am using a script that
Hey guys I have what should be a simple question, but I am new
Hey guys i have a question which i have been looking for the answer
hey guys having this really simple problem but cant seem to figure out have
Hey guys, I have another really annoying problem in IE. I am using a
Hey guys, quick question, I have a link when clicked drops down a list.
Hey guys, quick question, I have an id that is applied multiple times on
Hey guys another rails issue, Currently have a collection that is line items for
Possible Duplicate: Self-references in object literal declarations Hey Guys, i have a small question
Hey guys, I have this sign up script and I'm using mysql_real_escape_string .I know

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.