• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

dojo grid EnhancedGrid

 
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 37
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Pramod Krishna Murthy
Ranch Hand
Posts: 37
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


do you get the grid after you refresh the page? which is the browser you are using?
 
liliya woland
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 37
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 37
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 37
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"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
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, got you. Thanks a lot for your help. I just have to test it now.
 
reply
    Bookmark Topic Watch Topic
  • New Topic