dojox.grid.datagrid

How to create a dojo data grid with one of column being a button in header row?

落花浮王杯 提交于 2019-12-11 08:09:56
问题 I have a dojo(v1.6) data grid which have checkbox to select rows as left most column. I need to have header column of these checkbox as delete button instead of Select All checkbox. On clicking the delete button all selected rows gets deleted. Please find the Data grid Demo. I don’t know how to bring the header column of checkbox as button. Please help me to customize the widget. Here is grid js code dojo.ready(function(){ /*set up data store*/ var data = { identifier: 'id', items: [] }; var

dojox.grid.DataGrid: how to access data from a click event?

删除回忆录丶 提交于 2019-12-11 03:03:52
问题 I'm using Dojo 1.5 (including dojox). I have a dojox.grid.DataGrid where each row represents a user. When I click a row, I want to redirect to a URL like /users/USER_ID. The user ID is one of the fields in the grid, so all I need to do in my onRowClick callback is to grab the user ID for the row that was clicked. The click event contains a rowIndex property, and, indeed, I found a (rather old) post elsewhere that suggested I should be able to do: var row = dijit.byId('grid').model.getRow(e

Disable cache in ExtLib REST control (which uses dojox.data.JsonRestStore)

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 23:59:33
问题 In my XPage I have a xe:djxDataGrid ( dojox.grid.datagrid ) which uses xe:restService which seems to use dojox.data.JsonRestStore . Everything works fine without proxy but my client accesses the application via a proxy because of corporate policy. After a user updates data in the DataGrid it shows old values when accessed behind the proxy. When the REST Control/JsonRestStore sends an ajax GET request to get data, there is no Cache-Control parameter in request headers. And Domino does not

How to change cell formatting dynamically

你离开我真会死。 提交于 2019-12-10 12:04:51
问题 I hava implemented a datagrid using dojo which get updated every 5 seconds. I use following code to update the datagrid. jsonStore.fetch({ query: {id:'*'}, onComplete: function(items, result){ dojo.forEach(items, function(item){ jsonStore.setValue(item, "time" , data.update[0].netchange); ..... 'data' is the new data i need to set to the grid which is an json object as follows var data = {"update":[{...}]} what I need to do if the netchage is negative i need set cell color to red. if

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

懵懂的女人 提交于 2019-12-09 23:37:35
问题 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

Not coming out of inline editing in Dojo DataGrid [duplicate]

人走茶凉 提交于 2019-12-08 15:02:57
问题 This question already has an answer here : Closed 7 years ago . Possible Duplicate: Dojo IE DataGrid inline editing The cells in the grid in the following jsfiddle are editable but I am : not able to come out of the edit mode when I double click on the cell, change the value, click outside the grid. able to come out of the edit mode when I double click on the cell, change the value, click inside the grid. jsfiddle: http://jsfiddle.net/keemor/xDUpp/11/ Can some please fix that jsfidddle for me

DataGrid returning null selectedItem

偶尔善良 提交于 2019-12-08 13:32:59
问题 I have a dojo (1.8.1) DataGrid where I cannot retrieve all the selected items in the DataGrid (roughly 171 records in the grid). The problem is that some of data returned to selectedItem are null. Interesting, If i scroll all the way to the bottom of the DataGrid and then run though the code below, I get all the records..This is weird.. var gridy = dijit.byId("grid"); var items = gridy.selection.getSelected(); if (items.length) { dojo.forEach(items, function(selectedItem) { if (selectedItem !

Dojo DataGrid height resize not working

ぐ巨炮叔叔 提交于 2019-12-08 10:28:47
问题 I'm trying a simple "resize" behavior with a Dojo DataGrid object. The "width" is working fine as expected. However "height" is not working, and the Grid is displayed only with the initial rendering value. This is a hyperlink of a HTML file with the problem reproduced. https://www.ibm.com/developerworks/community/files/form/anonymous/api/library/45f7c930-197b-4a26-88c1-2445045c3b0b/document/3db02339-113a-44b3-828b-3c149b1a2f86/media/teste_datagrid.htm This is the source code: <!DOCTYPE html>

loading dijit calendar on click of dijit icon button with specific dates disabled

眉间皱痕 提交于 2019-12-08 07:51:10
问题 I'm trying to load a dijit calendar on click of dijit icon button with specific dates disabled, for this I tried two ways first one: loading calendar in js function getting error as trying to register "id==mycal" but that id is already registered ." <button data-dojo-type="dijit.form.Button" data-dojo-attach-event="onClick:oncldriconclick" data-dojo-props="iconClass:' dijitIconTable', showLabel: false" type="button"></button> <div id="mycal" data-dojo-attach-event="onclick: _onDayClick" ><

How to configure an xe:viewFileItemService on an XPage to filter the data in a categorized view?

倖福魔咒の 提交于 2019-12-08 01:20:54
问题 I have a DocsByUsername categorized view, sorted and categorized by the username. For the authenticated user I only want to display their documents in a Dojo Data Grid. The grid needs to support in-grid editing so I need to use an xe:viewFileItemService read/write service as the data source for the grid. I thought this would be fairly straight forward using the following service configuration ... <xe:restService id="restService1" jsId="restServiceObj" pathInfo="pathinfo"> <xe:this.service>