Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'd like to show a loading message (Loading...) that shows while the datagrid is being populated.

It would show when the search button is clicked and disappear when the grid results have populated.

I've seen a few possible options including dojox.widget.Standby however, it looks like there is something that is already embedded in the dojox.grid.DataGrid

I can't find any documentation on how to access it or show it in my app. Anybody had any luck inserting a loading message in their app?

share|improve this question

2 Answers 2

You may need to pass it into the constructor as an option:

var grid = new DataGrid({
loadingMessage: "Loading...",
/* all your stuff */
});

You will probably get better answers faster relating to Dojo over on http://stackoverflow.com .

share|improve this answer
    
thanks. I tried it over there. I did find a span tag that accesses the loading message within dojox.grid.DataGrid but can't figure out how to use it properly –  Craig Oct 30 '12 at 19:39
up vote 0 down vote accepted

The easiest method I've found to do this is by using:

grid.hideMessage("Loading..."); 

and

grid.showMessage("Loading...");

It wasn't exactly what I was looking for but it does the trick and is only 2 lines of code.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.