Questions tagged [dgrid]

dgrid is a component for creating lists and grids based on the Dojo Toolkit. dgrid is a completely portable AMD package designed to be lightweight, CSS-centric, easily extensible and mobile-ready. It's released under the same open-source license and CLA as the Dojo Toolkit (BSD/AFLv2).

dgrid is a component for creating lists and grids based on the Dojo Toolkit. dgrid is a completely portable AMD package in the Dojo Foundation package repository designed to be lightweight, CSS-centric, easily extensible and mobile-ready. It's released under the same open-source license and CLA as the Dojo Toolkit (BSD/AFLv2).

Features:

  • Keyboard navigation & ARIA role support for accessibility
  • i18n support
  • Asynchronous data retrieval & row rendering
  • Row & column drag’n'drop
  • jQuery ThemeRoller theme support
  • Native support for dojo/store (0.3 and earlier) or dstore (0.4 and later)
  • Automatic updates with Observable / Trackable stores
  • Inline cell editors, including support for Dijit form widgets as editors
  • Unlimited-depth tree support
  • Support for multiple independent column sets
  • Support for records rendered to multiple sub-rows
  • Support for custom formatting functions for cell contents
  • A complete row selection engine, including multi-row and indirect (checkbox-based) selection
  • ColumnHider: Shows and hides columns via a simple menu
  • ColumnReorder: Reorders columns in simple layouts using drag’n'drop
  • CompoundColumns: Allows spanning column headers
  • DijitRegistry: Enables integration with the Dijit registry and Dijit layout widgets
  • Virtual & traditional paging options via OnDemandGrid and Pagination

(The above information was distilled from the beta and 0.4 SitePen blog posts and the feature comparison on dgrid.io)

Useful links:

356 questions
3
votes
1 answer

dojo dgrid with store from url (json data) reload/refresh button

Firstly, I'm using dojo 1.1.0 and dgrid 0.4.0. I'm creating a page with a few dgrids on it. One grid in particular needs to load JSON data from a url and display it. It currently works fine doing that with a RequestMemory store. however, this is…
BLWedge09
  • 39
  • 1
  • 6
3
votes
1 answer

Dgrid - how do I merge cells in a single row

Few of the rows in my d-grid in a subsection and the row object has an attribute to identify such a row. Can I merge this row cells into one and change the CSS of the particular row to reflect the subsection part.
3
votes
4 answers

How to get the list of selected rows in Dgrid selection mixin

I am using Selector and Selection Mixin in Dgrid ondemandgrid.I am using checkbox as a selector.Below are my questions. How to get the List of Checked rows in a javascript on a html button click?I know there is a dgrid-select and deselect…
SSayee
  • 95
  • 4
  • 10
3
votes
1 answer

dojo dgrid custom render cell contents

I'm using a dgrid but find the documentation available from the website (http://dojofoundation.org/packages/dgrid/) a bit lacking: it teaches you the basics but seems to leave you to work out how to do anything more complex by…
Kate
  • 1,556
  • 1
  • 16
  • 33
3
votes
1 answer

How can I create a dgrid column editor plugin with a dynamic select input?

Overview I am using dojo and dgrid to build a grid. The 2 relevant columns are Client and Proposal. Double clicking on either column will allow you to edit it with a dijit/form/Select. I want options for proposal to be be based on the options for…
Ali Gangji
  • 1,463
  • 13
  • 22
3
votes
2 answers

Dojo dgrid: (Pre) Select row on render

How do I configure dgrid and it's store to define whether a row is already selected when the row is rendered? For example, if my row data is like so: { id: 1, name: 'Item Name', selected: true } My current code is to loop through the…
Buta
  • 73
  • 1
  • 4
3
votes
2 answers

dgrid with horizontal scroll

I have a dgrid displaying data in a table that contains many columns. The default layout of the dgrid causes all columns to be visible on the page, which means they are collapsed and it is unable to see the full header or data in each column. I…
Brian
  • 2,702
  • 5
  • 37
  • 71
3
votes
1 answer

Custom sorting using Dgrid

I am using Dgrid and I am aware of the sorting parameter which can sort asc and desc but I want to sort via a custom order which I guess needs to be done via the store. Does anyone have an example?
thiswayup
  • 2,069
  • 8
  • 32
  • 52
3
votes
2 answers

Automatically refresh dgrid contents

I am using a dgrid OnDemandGrid to display data from a Dojo JsonRest store. This works well but I want the grid to automatically display changed data. Implementing a push-based approach where the server tells all clients which data has changed is…
user1252065
2
votes
1 answer

dgrid dnd implement onDrop event

I would like to implement a custom behavior of the drop event of DnD in dgrid. I have the following gdrig declaration: this.grid = new (declare([OnDemandGrid, Editor, DnD, DijitRegistry]))({ region: "center", …
aRi_D
  • 25
  • 4
2
votes
1 answer

Dojo dgrid dstore collection - "or" filter not working

I'm working with Dojo dgrid and I have problem with dstore filtering with using "or" statement. var today = new Date(); today.setHours(0,0,0,0); var start_date= new Date(); start_date.setDate(today.getDate() - 5); start_date.setHours(0,0,0,0);…
StoreCat
  • 113
  • 2
  • 9
2
votes
3 answers

Dojo grid refresh and scroll position

I have a Grid in Dojo, var myGrid = new (declare([Grid, DijitRegistry]))({ store: myStore, // this is a Observable(Memory()) columns:[ {field: "field1", label: "A", sortable: false}, {field: "field2", label: "B", sortable:…
SoluableNonagon
  • 11,541
  • 11
  • 53
  • 98
2
votes
1 answer

How to do an aspect.after of renderRow method using dgrid with tree extension?

I am trying to style rows using dgrid with Tree extension. For this, I use aspect.after as suggested in https://github.com/SitePen/dgrid/issues/380 and it works well if you do not use Tree extension. But with Tree extension the grid is rendered when…
jvegaseg
  • 73
  • 6
2
votes
2 answers

How can I remove all items from a Dojo dstore?

I am having trouble removing all items from a dstore. I am trying this, which seems like it should work, but it fails at the end: var TrackableMemory = declare([ Memory, Trackable ]); var userMem = new TrackableMemory({ data: {the data...}, …
James Irwin
  • 1,171
  • 8
  • 21
2
votes
1 answer

Context menu using dojo dgrid

How to create context menu using dojo dgrid? Actually looking for context menu on dgrid, which should appear after "Right Click"of the mouse over row of the grid.
Satya
  • 182
  • 2
  • 9
1
2
3
23 24