Login Register

selection

FilteringSelect jump to user's previous selection...

What is the proper way to "jump to" the previous selection in a Filtering Select?

For example, there are three "pages" of options in the filtineringSelect, and the user selects an option from the 2nd "page". He then clicks on a couple different buttons, and then decides to change the value in the filtering select to a different option. When the user clicks into the filtering select, I'd like him to immediately see the option he originally selected (on "page" 2)....

Does Grid.selection.xxx Work When There is No GridRowView Column?

I have a grid which contains no GridRowView column, which would commonly be the leftmost column, if used.

For this grid, several of the grid.selection.xxx methods seem to be misbehaving, as detailed below. Are these methods intended to function when there is no GridRowView column, or am I doing something wrong?

Here is the ItemFileReadStore and the accompanying Grid, both from a jsp file. Directly below them is a pushbutton from the same jsp file:

<span dojoType="dojo.data.ItemFileReadStore"
url="files/testfile.json"

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.

Grid Select All using QueryReadStore

I have a grid setup using a QueryReadStore as the datastore.

I implemented a select all feature by utilizing g_grid.selection.shiftSelect(0, rowcount).

where rowcount is set by the model's getRowCount.

This populates the selection array correctly. However when I loop through the selection array and start retrieving rows using g_grid.model.getRows, everything is fine until I get to a rowid for a row that hasn;t been fetched from the db yet. I see a get request fire off in firefox but I am guessing it must be asynchronous and not returning in time for my loop.

Syndicate content