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
0
votes
1 answer

how to have a working grid displaying data source from ajax with the grid?

As I have learned the tutorial about dgrid(a new dojo grid),I have learned the example code. Let me pick one to list here: require(["dgrid/Grid", "dojo/domReady!"], function(Grid){ var data = [ { first: "Bob", last: "Barker", age: 89 }, {…
andyqee
  • 3,175
  • 3
  • 21
  • 24
0
votes
1 answer

dojo dgrid not rendering

I'm a newbie at js frameworks and trying out Dojo currently to see if its best for our project. I'm struggling to get things working with Dojo. I attempted using Dojo's dgrid.The code is more or less a straight lift off from the tutorials and I…
Chetya
  • 1,267
  • 1
  • 17
  • 31
0
votes
1 answer

How to style a Row in a dGrid

How can I style specific rows of a dGrid? I have an array of ids for rows which I want to be highlighted but I cannot figure out how to highlight these rows. It's an onDemandGrid with thousands of records so I can't just loop through the rows and do…
voidstate
  • 7,937
  • 4
  • 40
  • 52
0
votes
1 answer

dojo select field displayed value

I use the dijit.form.select with the grid editor like this: editor({ label: 'status', field: 'status_name', editorArgs: { style: "width:75px;", options: task_status }, className: 'style8' }, Select,…
Tariq
  • 2,853
  • 3
  • 22
  • 29
0
votes
1 answer

Adding a Live Query to an OnDemandGrid-style dGrid Using a JsonRest Store?

How do you implement a dijit/TextBox which filters the data in an OnDemandGrid-style dGrid when the dGrid is backed by a JsonRest store? I want to search in the box and have the grid update as I type. I can't find any examples in the dGrid docs and…
voidstate
  • 7,937
  • 4
  • 40
  • 52
0
votes
1 answer

How to show a dojo dgrid select in another dgrid cell

I have a Dgrid that shows some data, say DataDgrid. I'd like to add a select control based on another Dgrid, say SelectDgrid, inside one of the cells in the main DataDgrid. To add the select I am following this example:…
Greg
  • 8,230
  • 5
  • 38
  • 53
0
votes
0 answers

Dojo's OnDemandGrid and JsonRest Producing Erratic Order

I've been using dgrid's OnDemandGrid with dojo.store.JsonRest rather successfully after a bumpy start, but while implementing caching noticed a glitch: if I do a long swipe of my trackpad (i.e. I scroll rather unscientifically a "long way") and then…
Timothy R. Butler
  • 1,097
  • 7
  • 20
0
votes
1 answer

Connecting dgrid to a store that has fields on different levels in JSON

I am using a dojo dgrid tied to JSON store. This is what a row from a store looks like: Store retrieves data from a table which contains fields (id, naziv, nivo, sifra). This table has a foreign key to a table JEZICI which contains fields (id,…
phil
  • 707
  • 5
  • 19
0
votes
1 answer

Dojo dgrid, put icons in each subrow in Plugin Column tree (PDF, HTML, XSL)

I have done a dojo dgrid, where I have a tree field(Plugin Column). I am trying put icons(PDF, HTML and XLS) in each subrow for the user to do download. I tried to use formatter: function(item, rowIndex, cell) for create the icons, but it damages my…
Thiago C. S Ventura
  • 2,448
  • 1
  • 29
  • 43
0
votes
1 answer

dgrid and DateTextBox

I am trying to get a dgrid OnDemandGrid to work with dijit.form.DateTextBox as an editor. The data is fed to OnDemandGrid via JSON. Initially, I was trying to feed dates in the raw format from the MySQL database (e.g. YYYY-MM-DD HH:MM:SS), however…
Timothy R. Butler
  • 1,097
  • 7
  • 20
0
votes
1 answer

How to float Dojo DropDownMenu over a table cell

In short, how can I show a drop down menu floating over a table and not rendered inside the table cell? I am using this example code to show a drop down menu inside a table cell: window.someObj.showSocs = function(index){ var pSubMenu = new…
Greg
  • 8,230
  • 5
  • 38
  • 53
0
votes
1 answer

how to revert single edited row in dojo dgrid?

Is there a way to revert/reset the edited row in the dojo-dgrid ? I can see the grid.revert() which does clear the dirty items and calls the refresh method, which will refresh the whole grid. I don't want this whole grid-refresh. Is it possible to…
Dinesh
  • 53
  • 7
0
votes
1 answer

grid.selection is getting lost if I iterate over it

When I iterate over grid.selection parameter (widget dgrid**) then it just gives me first value inside grid.selection and then it becomes null also the selection inside grid is getting lost. How can I avoid this? Is there any parameter through which…
TechnoCrat
  • 2,055
  • 4
  • 23
  • 35
0
votes
2 answers

OnDemandGrid (Dgrid) won't fire a request (for new data) on scroll down

Allright, I have been able to make it work with DataGrid, but for some reason, Dgrid can be really impressing and at the same time, really frustrating (many people recommend it). So far, I have been able to request a certain amount of data (only…
fneron
  • 1,057
  • 3
  • 15
  • 39
0
votes
1 answer

Bind dojo dgrid to form with dojox.mvc

I want to bind a dgrid to a form in dojo using dojox.mvc. While there are many samples on how to bind single models to forms there is nothing showing how to do this with a grid. The grid will have to share the same store with the form and when…
Nick Proto
  • 121
  • 1
  • 6
1 2 3
23
24