Is it possible to modify the model on a grid without going back to fetch the store?
I want to preload all of my store and then change the query in the model based on a parameter but not have to go fetch the data again.
Is this possible?
dijit.grid.editors.select
Modify grid model on the fly
Editable Subgrid
Just discovered dojo. love what you're doing! Using the test_subgrid.html, I was trying to figure out how to create an editable subgrid. As I dug further into it, I realized that the editable grid example creates dojox.Grid where as the subgrid example creates dojox.VirtualGrid. Can someone help me understand when one should use VirtualGrid and when one should use Grid especially how this relates to the issue of subgrids and editable grid?
- Login or register to post comments
- Read more
- Unsubscribe post
Programmatic Grid Row Selection by Data Contents
How do I select a specific row in a grid programmatically? I am loading a page for example showGrid.php?id=397, so I want to display the Grid with its usual data of, say, 1000 rows, but set the initial selection to an item that can be uniquely identified by the id 397 - (i.e. store.getIdentity(item) would be 397). Note that this row might be anywhere in the grid depending on how the data is sorted and filtered at the time.
from other posts I've gathered that I can set the selection via
grid.selection.setSelected(rowindex,bSelect)
Dijit Loading issues in dojo 1.1, IE6
Hi
when i load a page which has dojo 1.1 components in IE6
it takes sometime to apply the styles for dojo and till then it shows a notmal HTML page
by sometime i mean 1 sec or so.
the problem is that for that one secone the page doesnt have any style and all the data is visoble ti the user,
for example if i have a tabbed pane which is not selected then even the data of that is visible to the user.
does anybody knows the cure for this? also the same doesnt happen in Mozilla.
Is it a browser issue can it be fixed ??
Dino
- Login or register to post comments
- Subscribe post
dynamic options for dojox.grid.editors.select
I've tried a few different way to dynamically populate the options for dojox.grid.editors.select control in a grid. The closest I've come was to build a html string of dijit.form.ComboBox and return it from a cells "get:" function. Any suggestions?
{ name: "Mediator", width: 14, field: 9, styles: 'text-align: right;', get: getMediators }
function getMediators(rowIndex)
{
var mediators = this.grid.model.data[rowIndex][this.fieldIndex];
if (mediators.length == 0)
return "";
else if (mediators.length == 1)
return mediators[0].name
else
{
- Login or register to post comments
- Read more
- Subscribe post
