dojox.grid

Dojo EnhancedGrid: how to get selected column?

妖精的绣舞 提交于 2020-01-05 07:41:19
问题 In dojo enhanced grid, is there any way to get the selected columns? Currently I can get selected rows by using grid.selection.getSelected() but I don't know how to get the selected column. 回答1: Solved. Can be found with this: theGrid.focus.cell.field. This will give you the column name. There is also theGrid.focus.cell.index and theGrid.focus.cell.layoutIndex if integer is what you need instead of column name. 来源: https://stackoverflow.com/questions/4447578/dojo-enhancedgrid-how-to-get

Stateful server side filtering in dojo

☆樱花仙子☆ 提交于 2019-12-31 05:46:05
问题 I am doing server side filtering in the enhanced grid in dojo 1.10 version. Here in document it is clearly mentioned to use isStateful property. Also, if we use isStateful property we need to use the URL parameter also, which according to documentation is When both isServerSide and isStateful are true, this is a place to set the server url, if it cannot be retrieved by store.url. I want to know how what is here store.url ? I have searched in other sites, the other definition I get of url is

Dojo dGrid header checkbox to select all does not work

一个人想着一个人 提交于 2019-12-31 04:55:08
问题 I created a dojo dgrid however i used a form wizard to seprate the fields on the form, however with the current structure i am having an issue with the select all feature on the grid. I cannot select all however if i remove the div Page2 and it content from the form it works. In firebug i also inspected the DOM and i saw the 'aria-checked = mixed' when i check the select all box when it should be 'aria-checked = true'. How can i get the header checkbox to allow all records to be selected when

Dojo setQuery() on DataGrid - all items disappear?

こ雲淡風輕ζ 提交于 2019-12-29 08:26:05
问题 I've racked my brain and done tons of research and testing and can't figure out what is going on. I have a Dojo datagrid which is declared statically with some HTML. Using the GUI, my users will add items to the DataGrid, which works as it should. However, I'd like to have a function that is called at a certain point that uses Dojo's setQuery to filter the data that shows in the DataGrid. The problem is that once I run the setQuery command, ALL of the data in the grid disappears, no matter if

How to update enhanced grid with new data

妖精的绣舞 提交于 2019-12-25 05:18:14
问题 I have an enhnaced grid connected to a JSONRest and i have it populating after the grid starts up. I'm confused as to how to update the Grid store when a new query is performed, can anyone help ? var store = new JsonRest({ target: "rest/search" }); dataStore = new ObjectStore({ objectStore: store }); /*set up layout*/ var layout = [[ {'name': 'Name', 'field': 'col1', noresize: true, 'width': '100%'}, ]]; /*create a new grid:*/ grid = new EnhancedGrid({ id: 'grid', store: dataStore, structure:

dojo treeGrid aggregate not working after refreshing jsonStore

懵懂的女人 提交于 2019-12-25 02:13:09
问题 I have dojo treeGrid that shows totals for child items. Everything works fine. But if I replace/update store and refresh then aggregation doesn't work and all totals shown as NaN. What am I doing wrong? var layout = [ { cells: [ [ {field: "userName", name: "Name"}, {field: "childItems", children: [ { field: "debit", name: "debit"}, { field: "credit", name: "credit"} ], aggregate: "sum" } ]] } ] var jsonStore = new dojo.data.ItemFileWriteStore({ url: "<............>"}); var grid = new dojox

Paging is not working, using JsonRest with EnhancedGrid

妖精的绣舞 提交于 2019-12-24 17:48:00
问题 I'm creating widget for IBM BusinessSpace, and I'm having some difficulties with paging. Data are succesfully returned from database (using restlet) and displayed in a grid. Navigation is also displayed below the grid (next page, previous page, go to page, number of pages, etc). If I, for example, have 3 pages, 5 rows per page, and want to navigate to second page, when I click on the page number 2, data reloads (it seems like restlet is called again), and first 5 rows (displayed on the first

dojo Datagrid filter select that allows user to select from a list of values in the column

强颜欢笑 提交于 2019-12-24 05:55:22
问题 I m using dojo datagrid which contains 2 columns "name" and "age" , the requirement is to provide the filtering option on the "name" column in the datagrid. so that user can search and select his/her name from the list of values ,by clicking on the header of the name column. Is there any option that need to set in layout for the same. can some one please help on this. var layout = [ {field: "Name", name: "Name", width: '200px' }, {field: "Age", name: "Age", width: '100px' }, ]; var

Dojo Enhanced grid with pagination need to access number of rows in the page

二次信任 提交于 2019-12-18 09:39:13
问题 I am implementing Dojo EnhancedGrid with pagination and there is something called items per page . 10 | 20 | 30 | 40 | 50| all. Suppose I select here 20 in the EnhancedGrid pagination. How to access the value 20 from the program? I want to get this value and store it in a variable say Page-size . I am using Dojo version 1.6.1 回答1: You can access the page size in dojo 1.6 using this: yourGrid.pagination.plugin.pageSize; Here is a working jsfiddle using dojo 1.6: http://jsfiddle.net/SM8GS/1/ It

How to add a blank/empty row to the EnhancedGrid which is binded to MemoryStore

我的梦境 提交于 2019-12-13 05:07:14
问题 I am using MemoryStore, Observable and ObjectStore to bind the data to EnhancedGrid. But when add a row to EnhancedGrid, the newly added row cells are shown with (...). When i try to edit the cell, it displays undefined and ended with an exception. Javascript: require(['dojo/_base/lang', 'dojox/grid/EnhancedGrid', 'dojo/data/ItemFileWriteStore', 'dijit/form/Button', 'dojo/dom', 'dojo/domReady!', 'dojo/store/Memory', 'dojo/store/Observable', 'dojo/data/ObjectStore'], function (lang,