dojox.grid.datagrid

how to save a filter in Dojo

孤人 提交于 2019-12-07 10:23:32
问题 I have an EnhancedGrid that users regularly use complex filters on. Is there a way to allow users to save or bookmark a filter so they can easily re-apply it in future? I know I can programmatically set a filter, but I can't predict what filters my users will want. Thank you! edit: made some progress myself... using grid.getFilter() to return a JSON representation of the filter, then json.stringify(jsonRepresentation) to convert it into a string. Now I'm considering my options for how to

When declaratively creating a dojox.grid.DataGrid - how to specify nested data in the field attribute?

爱⌒轻易说出口 提交于 2019-12-06 12:19:36
I'm creating a dojox.grid.DataGrid in dojo 1.6 with the following notation: <table dojoType="dojox.grid.DataGrid"> <thead> <tr> <th field="id">ID</th> <th field="contact.name">Name</th> <th field="contact.tel">Telephone</th> <th field="contact.birthdate.time">Birthday</th> </tr> </thead> </table> The Data looks something like this: [{ 'id':1, 'contact':{ 'name':'Doh', 'firstname':'John', 'tel':'123-123456', 'birthdate':{ 'javaClass':'java.sql.Timestamp', 'time':1234567893434}} }] ID is rendered corectly, but all the others render as "...". I have tried to specify a formatter, setting the base

how to save a filter in Dojo

我只是一个虾纸丫 提交于 2019-12-05 15:51:34
I have an EnhancedGrid that users regularly use complex filters on. Is there a way to allow users to save or bookmark a filter so they can easily re-apply it in future? I know I can programmatically set a filter, but I can't predict what filters my users will want. Thank you! edit: made some progress myself... using grid.getFilter() to return a JSON representation of the filter, then json.stringify(jsonRepresentation) to convert it into a string. Now I'm considering my options for how to store, load and convert that string. Would loading a string into a json object then applying it as my

Dojo DataGrid (8.5.3 UP1) Returning Blank Rows - based on Readers field

爷,独闯天下 提交于 2019-12-04 18:55:54
Trying out a Dojo DataGrid control on an alternate XPage (so as not to impact production) for an existing View, which utilizes Readers fields in the documents. I've got the REST service implemented (xe:viewItemFileService) and connected to the Dojo DataGrid just fine (from 8.5.3 UP1 controls). I have two scenarios of user visibility (via Roles in the Readers field, assigned by NAB Group definition): All documents visible (user A). User A can see all documents, everything works perfectly fine for this one. User B can see some documents. ViewPanel control works fine, but once it's in the Dojo

dojox.grid.DataGrid - onStyleRow needs update? (dojo 1.2.0)

血红的双手。 提交于 2019-12-04 18:12:35
we are using a dojox.grid.DataGrid in a jsp. <script type="dojo/method" event="onStyleRow" args="inRow"> var grid = dijit.byId("someID"); var item = grid.getItem(inRow.index); if(item != undefined) { if(item.someAttribute == "1") { inRow.customClasses = "dojoxGridMYRow"; } else { inRow.customClasses = "dojoxGridRow"; } } if(aBoolean) { inRow.customStyles = "backgrund-color: #FFCC00"; } //dojox.grid.DataGrid.prototype.onStyleRow.apply(this, arguments); //grid.focus.styleRow(inRow); //grid.edit.styleRow(inRow); </script> The first commented line is to get normal behaviour when clicking a row.

Data is not getting displayed in dojox.data.Datagrid on click event.

允我心安 提交于 2019-12-02 18:01:26
问题 I want to display data in a data grid. The data is retrieved by a URL using $.get Method as a JSon type. I am not getting any error. But not getting Data grid as well. Here's me script code :: <script type="text/javascript"> $("document").ready(function(){ $('#contentpaneid').bind('click', getInfoFromServer); function getInfoFromServer(){ $.get("http://localhost:8080/2_8_2012/jsp/GetJson.jsp?random=" + new Date().getTime(), function (result) { success:postToPage(result), alert('Load was

Dojo IE DataGrid inline editing

我只是一个虾纸丫 提交于 2019-12-02 04:07:58
问题 I have enabled inline editing of cells in DataGrid and it is working fine all browsers except IE. The problem is that after double clicking a cell and performing changed in values of cell, I have to double click on another cell within the grid. If I single/double click outside the grid, the cell which the user was editing still remains in edit mode. I have overridden the onApplyCellEdit event of datagrid to capture changes and submit to server. There is no javascript error in developer tools

not able to call a function on pagination dojo enhancedGrid

那年仲夏 提交于 2019-12-02 03:04:40
问题 I tried all the possible ways but it's not working. I want to call a function when I move to another page in a dojo dataGrid (during pagination). I tried the below code, but it's not working... method one: nextPage = function(src) { alert("going"); }; grid.startup(); method two: grid.on("nextPage", function(evt){ alert("next"); }, true); method thee: grid.pagination.plugin.nextPage = function(src) { alert("here"); }; None of these methods are working. Please give sample code which will be

Dojo IE DataGrid inline editing

守給你的承諾、 提交于 2019-12-02 02:05:18
I have enabled inline editing of cells in DataGrid and it is working fine all browsers except IE. The problem is that after double clicking a cell and performing changed in values of cell, I have to double click on another cell within the grid. If I single/double click outside the grid, the cell which the user was editing still remains in edit mode. I have overridden the onApplyCellEdit event of datagrid to capture changes and submit to server. There is no javascript error in developer tools console of IE Any ideas or pointers to this? This has also been added to the other linked question but

not able to call a function on pagination dojo enhancedGrid

▼魔方 西西 提交于 2019-12-02 00:50:23
I tried all the possible ways but it's not working. I want to call a function when I move to another page in a dojo dataGrid (during pagination). I tried the below code, but it's not working... method one: nextPage = function(src) { alert("going"); }; grid.startup(); method two: grid.on("nextPage", function(evt){ alert("next"); }, true); method thee: grid.pagination.plugin.nextPage = function(src) { alert("here"); }; None of these methods are working. Please give sample code which will be called by clicking on any page numbers to move to another page... Here is a dirty solution with a working