dojox.grid.datagrid

dojox.grid.DataGrid populated from Servlet

I'd like to hava a Dojo dojox.grid.DataGrid with its data from a servlet. Problem: The data returned from the servlet does not get displayed, just the message "Sorry, an error has occured". If I just place the JSON string into the HTML, it works. ARRRRGGH. Can anyone please help me! Thanks Jeff Porter Servlet code... public void do...

dojox.grid.DataGrid not rendering inside contentpane using attr

i have a problem using dojox.grid.DataGrid, im using this code to load inside dojox.layout.ContentPane, sadly in IE7 and IE8 doesnt work, but in firefox 3.6 does work perfectly. function getHTML(URL, dest) { var myCp= dijit.byId(destino); myCp.destroyDescendants(); myCp.attr("href", URL);` This is my first time using Doj...

dojox.enhancedGrid get Selected Row

How can I get the Selected Row Object of dojox.enhancedGrid ? I am using selectionMode: 'single' e.g. with Radio Buttons. dijit.byId("gridViewWidget").selection.selectedIndex Returns the rowIndex. But how to get the rowObject of that Index ? I can get the rowNode()But What I need is value of the id column of that Row. Its possible to t...

DataGrid memory leak with dojox.data.QueryReadStore

I am using a dojox.grid.DataGrid with a dojox.data.QueryReadStore. As the user scrolls the grid, the grid lazy loads rows from the store and keeps them in memory. Using Firefox on Linux or IE 7 or 8 on Windows, it appears that these rows are never cleared, and the footprint of the browser window will continue to grow (as observed in to...

ItemFileWriteStore

How to use ItemFileWriteStore in case of Dojox DataGrid. I want to save the data (which may be edited at runtime) back to json. Do you have example of the same?? Please post it here. ...

Dojox datagrid data vanishes when clicking the header row

I have a table that contains multiple rows. In one row I have two datagrids that load up properly with the data that is provided but if the header column is clicked then the entire data of the grid just vanishes and the rows beneath the grid row move up. I am only showing the one item but the results are the same. function addRow(){ ...

Howto show with Dojo XML-Data with sub-atoms in DataGrid

I have the following XML-File: <filter> <rule> <name>User1</name> <mail> <address>[email protected]</address> <address>[email protected]</address> <address>[email protected]</address> </mail> </rule> <rule> ...

dojox.grid.DataGrid custom sort method?

I have a dojox.grid.DataGrid, and one of the columns has date data in it. e.g. 09:01:00 18/10/2010 09:03:00 18/10/2010 09:02:00 19/10/2010 When I click the heading and sort the column, I get this... 09:01:00 18/10/2010 09:02:00 19/10/2010 09:03:00 18/10/2010 It has sorted on the String value, not sorting it as a date value, hen...

dojox - Datagrid with Checkbox -> onSet / trigger save JsonRestStore

Hi all, i have a datagrid (created programmatically) wich is connected to an JsonRestStore. In that Grid there are some columns rendered as checkboxes (type:dojox.grid.cells.Bool) Everything works fine, displaying Data and so on. To be able to edit inline, i connected the onApplyEdit to store.save. The Problem is, that the change of the...

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

Hi, 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 { i...

jsonreststore.deleteItem() dojox.grid.datagrid not updated

Hi, as long as i know, the dojox.grid.datagrid should be "data aware" wich means, if i delete an item from the jsonreststore, it should get deleted from the datagrid too... but - the grid is updated only if there is an error in the json-resonse from the delete-Request. If i return 204 as status code, nothing happens (in the grid, the d...

dojox.grid.DataGrid - Maintaining row selection when sorting and paging

I am using a dojox.grid.DataGrid to display data and allow the user to select one or more rows to highlight items to do other actions to. My problem is that the grid uses indexes to remember the selected rows. If I have turned clientSort on, sorting the rows makes the rows change order but the selection changes to the rows that now occ...