dojox.grid

Dojox Grid pass two fields to formatter

Hello, 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 formatterFunction() both 'id' and 'name' for instance. How can I do this? Thank you...

Pass Attribute when fetching data for dojox grid

Hi, Using Dojox Grid, I want to pass some data (for pagination) from server when getting JSON data with QueryReadStore . For that, I add new attribute named nPages in JSON object, so my JSON seems like this : {"nPages":"3","items":[{"wake":"2010","number":"008"},{"wake":"2009","number":"003"}]} How can I read the attribute nPages from ...

Double Service Call on Cached Dojox Grid

Hello, I am trying to get the amount of rows returned from a ServiceStore call. I am caching the Grid, so I should be able to return the amount of rows with a store.fetch, for some reason store.fetch is making another service call. Here is a code snippet grid = new dojox.grid.DataGrid({ structure:gri...

Dojo datagrid and treegrid help - datagrid has a reformating flash?

Hi stackers, I'm having a bit of a time trying to get Dojo grids (1.5) to play nice. Specifically I've spent about two weeks of work trying to implement a grid that allows for our result set data to collapse into rows, where rows can be expanded. Data comes in as a full set in JSON format, using ItemFileReadStore as the store. Any sub...

dojo grid filter by dates

Here is my problem: I have a grid that displays a list of records along with the date of the record. With that in mind I created a filter form that will allow the user to filter the data based on the dates. The problem here is how can I filter the dates. Here is what I have so far: MyGrid is populated from my datastore: recordsStore: ...

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...

Dojo Problem with ItemFileReadStore and JSON data

I have a web service that returns some data in json. I have validated the json returned and it's well formed. Here's a sample: { "identifier": "ID", "items": [ { "ID": 2, "Description": "test 1" }, { "ID": 3, "Description": "test 2" } ] } ra...

Dojo: Get displayed items from an DojoX Grid

Is there any way to get all displayed items from an dojox.grid? We have an Filter with querys, now we need all items displayed in the moment. To get all selected items is no problem with: var items = grid.selection.getSelected(); ...