File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes dojo grid EnhancedGrid Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "dojo grid EnhancedGrid" Watch "dojo grid EnhancedGrid" New topic
Author

dojo grid EnhancedGrid

liliya woland
Ranch Hand

Joined: Apr 11, 2006
Posts: 134
Hello, I'm hoping someone who know dojo grids could help me with the following dojo EnhancedGrid trouble.
I created a grid that has no issues loading data locally or otherwise on my dev machine. My machine has several processors and lots of memory. The grid uses a small array of test data, under 10 records. For coworkers with ordinary, non-dev computers, the grid does not load consistently - sometimes it does and sometimes it doesn't, no errors as much as I know. I implemented a simple timer to test data availability before grid gets created. I can not repro grid load inconsistency on my machine. I wonder if there is anything made specifically for dojo grid for catching slugging data access. Any help will be much appreciated.
Pramod Krishna Murthy
Ranch Hand

Joined: Jun 30, 2009
Posts: 37

liliya woland wrote:Hello, I'm hoping someone who know dojo grids could help me with the following dojo EnhancedGrid trouble.
I created a grid that has no issues loading data locally or otherwise on my dev machine. My machine has several processors and lots of memory. The grid uses a small array of test data, under 10 records. For coworkers with ordinary, non-dev computers, the grid does not load consistently - sometimes it does and sometimes it doesn't, no errors as much as I know. I implemented a simple timer to test data availability before grid gets created. I can not repro grid load inconsistency on my machine. I wonder if there is anything made specifically for dojo grid for catching slugging data access. Any help will be much appreciated.



hi,

exactly what is happening. do you get blank screen? dojo is little bit heavy on the browser. i am not sure whether processor has anything to do with it. it depends on how you have included the js required for the grid. we faced similar problem in our project. we resolved it by including the dojo js files in the normal script tag and not by using the dojo.require.
try this once.


"Nothing is forever except Change"
Pramod Krishna Murthy
Ranch Hand

Joined: Jun 30, 2009
Posts: 37



do you get the grid after you refresh the page? which is the browser you are using?
liliya woland
Ranch Hand

Joined: Apr 11, 2006
Posts: 134
Usually, for me, I get a delay - grid header shows up, then few seconds later the content shows up, even when there is just one row record, I get the delay. For my coworker, from what I understand not even grid header loads sometimes. Yes, the grid shows up after page refresh.
I'm using Firefox.
Not using dojo.require - I thought you have to have that syntax before calling dojo objects. Are you not using that for the grid only? I will try that, thank you for that suggestion, I would've not considered that.
Pramod Krishna Murthy
Ranch Hand

Joined: Jun 30, 2009
Posts: 37

I understood the problem. same thing happened in our project too. actually what happens with dojo is that there is delay in loading dojo widgets when compared to the default dom objects. when the page loads your dom elements will be loaded before dojo widgets are loaded. hence sometimes you will get the blank screen. there is no clear defined way to solve this. but we did a work around by using all the dojo related js files in the normal script tag at the body level. dont use the script tag at the header level.
Pramod Krishna Murthy
Ranch Hand

Joined: Jun 30, 2009
Posts: 37

we are not using dojo.require for the grid alone but for the entire project. download all the dojo files and install in your project directory(sure you would have done that) and call them locally using the include js tags.
Pramod Krishna Murthy
Ranch Hand

Joined: Jun 30, 2009
Posts: 37

"even when there is just one row record, I get the delay".

it does not matter how many records the grid has unless it is really a huge result set. the time taken for loading records actually depends on the dojo widget getting loaded.
liliya woland
Ranch Hand

Joined: Apr 11, 2006
Posts: 134
Ok, got you. Thanks a lot for your help. I just have to test it now.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: dojo grid EnhancedGrid
 
Similar Threads
A sample code having json dojo and a servlet
Question on correct use of I/O stream objects.
How to stop loading dojo files in Strut2
problems masking a grid panel
New to Dojo JSON