Login Register

sorting

formatter: and sorting

Hey everybody….I’m using the “formmatter:formatValue” parameter in the the grid structure.

My problem is that although I’m changing formatting of that data, I want the grid to retain its knowledge of the original values so that its able to perform client-side sorts of the original value…any ideas (or examples :) ) on how to accomplish this?

Thanks!
Nathan

Sort Grid by Selected Rows

Hello!

I'm trying to sort my grid based on selected rows. That is, I want all the selected rows to sort together at the top of the grid. Can anyone please provide me with some tips to make this happen?

Should I create a field/cell to hold a boolean value that is determined on selection and sort by that (like a checkbox)?

Any help is greatly appreciated.

Thanks,
-Tommy

Dojo Grid rendering and sorting very slow

All,
We are using dojo Grid with CsvStore with around 30 records and 25-30 columns.
In IE, the rendering is pretty slow compared to FireFox.

but Sorting is very very slow in both the browsers.

Here is how we are creating the grid:

var wstore = new dojox.data.CsvStore({data:jData});		
var wjsonModel = new dojox.grid.data.DojoData ( null,wstore,{query:{ isActive :'*' }, rowsPerPage: 10, clientSort:true, jsId:"wmodel"});
var infoGrid = "wGrid");
infoGrid.setModel(wjsonModel);

And here is the view definition:

var fixedColsView = {
noscroll: true,

QueryReadStore, sorting and paging

Hi,

I am using the grid with QueryReadStore using a Java servlet backing the store. As I am not too educated in Javascript (which is a bit of an overstatement given that I have never worked with Javascript before :-), it took me some time to make QueryReadStore work with my servlet and do proper paging (I have a relatively big database behind the servlet and the grid shows the database content).

Grid selection display remains the same on sorting.

Currently:

  • Select a row in a grid
  • Click on a column header to sort it
  • The selected row will move elsewhere as a result of being sorted
  • The highlight to indicate selection remains in the same position

Is this the desired behaviour? I would expect the selection highlight to follow the selected rows when they were sorted.

Syndicate content