Questions tagged [dojox.grid]

Data Grid module of Dojo Toolkit (a JavaScript toolkit).

244 questions
1
vote
0 answers

Rowspan/Cellspan for only Headers (not for data cells) in DOJO grid

I need create dojo grid with next structure: How can we see on requirements image, grid has grouping in only headers and cells with data have usual structure without any mergers. If we add colspan/rowspan to structure(layout) dojo grid, the grid…
Artsiom Che
  • 122
  • 8
1
vote
2 answers

Is it Possible to remove header from DOJO Grid

Is it Possible to remove header from DOJO Grid?
1
vote
1 answer

How to delete a column in dojox/grid/EnhancedGrid

Do we have any way to delete a column in dojox/grid/EnhancedGrid. Please let us know if there is any solution for this. Please find my sample grid. Details: it creates a dojox/grid/EnhancedGrid and has an action associated with clicking a header…
Ajay Kumar
  • 71
  • 8
1
vote
1 answer

Dojo EnhancedGrid: how to get selected column?

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.
Hery
  • 7,443
  • 9
  • 36
  • 41
1
vote
2 answers

Dojo EnhancedGrid editable problem

I'm having problem with making my dojo EnhancedGrid editable. Currently, I can double click the grid cells and I can change the value, but the moment I press enter again or try to leave the cells (i.e. to save the new value to the grid), I received…
Hery
  • 7,443
  • 9
  • 36
  • 41
1
vote
3 answers

Validate that my Dojo Datagrid has at least one row

I have a Dojo form and I am using validation. Everything is working fine for my regular fields and validations. My form contains a DataGrid that is initially empty and the user can add rows. I want my form validation to check that there is at least…
Gary Joy
  • 103
  • 8
1
vote
2 answers

dojox.grid.DataGrid Custom Cell?

who knows a way to create a custom cell fora dojox.grid.DataGrid? I of course could use the get and formatter properties of the layout, but this is not a really reusable solution! Thanks for your input! heinrich
Erik
  • 11,944
  • 18
  • 87
  • 126
1
vote
1 answer

How to get the new order for enhanced grid columns after a Drag and Drop(DnD) operation

we were looking for a way to record the order of the columns in the enhanced grid after some column drag and drop operations within the same grid, since the layout of the grid does not change after a DnD operation, I am not able to find any way to…
1
vote
2 answers

Sort Dojo store items

So, I have a dojo script wherein I'm pushing 4 rows into a data grid. Something like this, var data = { identifier: "id", items: [] }; var data_list = [ { col1: "normal", col2: false, col3: 'Cut are not…
HeXMaN
  • 113
  • 1
  • 11
1
vote
2 answers

How can we set children in dojo TreeGrid?

when I use the LazyTreeGrid, I met a little problem; I have the file JSON like this: {id: 'AF', name:'Africa',description:""}, {id: 'EG', name:'Egypt',description:""}, {id: 'KE', name:'Kenya',description: { compents: [ {id: 'Nairobi',…
1
vote
0 answers

XPages:How to set dojo grid item selected after XSP.partialRefreshPost

I am using Dojo EnhancedGrid and would like to set an item selected after calling XSP.partialRefreshPost or XSP.partialRefreshGet var store = dataGrid.store; index = grid.selection.selectedIndex; var item = dataGrid.getItem(index); var…
K.john
  • 21
  • 1
1
vote
4 answers

Dojox Grid pass two fields to formatter

I created a dojox.Grid successfully, but in one case I need to pass two fields to a formatter function instead of just one. For instance: { field: 'id', name: 'Id', formatter: formatterFunction, }, I need to pass to…
Claudio
  • 11
  • 1
  • 2
1
vote
0 answers

how to add onblur function for columns in EnhancedGrid

I have a dojox.grid.EnhancedGrid which have some editable columns, editable columns should not allow space values, when I give space values it should trim the value. By onblur I can trim the value. But in enhanceGrid how to add onblur function for…
1
vote
3 answers

Dojo: how to get row data in grid's context menu item handler?

I'm using Dojo 1.4. Given a dojox.grid.DataGrid in markup:
Shrike
  • 9,218
  • 7
  • 68
  • 105
1
vote
1 answer

How to add filter in EnhancedGrid

I want to add filter in dojox.grid.EnhancedGrid and my grid is created declaratively. I added filter in data-dojo-props attribute. My code :
KSK
  • 636
  • 1
  • 9
  • 29