Comments (13)
When do you wanna refresh it? If its on an interval you can simply do
$(".grid").on("loadComplete",function() {
var self = this;
setInterval(function() {
$(self).grid("load");
},5000);
});
from openjs-grid.
Be cool if the changes were pushed instead of pulled.
from openjs-grid.
For that - You need my other tool RealTime. http://connectai.com/realtime
it would allow php or js to trigger changes to be pushed to the grid. Which wouldn't even need a refresh, you could just insert rows. Or refresh.
from openjs-grid.
You need to hire a team of people to write tutorials using your fantastic tools.
from openjs-grid.
I have a problem with this it is running but then it multiples the call and after the 4th time it hangs the load logo and then hangs up and calls about 83 events.
sorry I cannot get the code to go in correctly so I had to take a screen shot.
from openjs-grid.
oh, right. Yes. Because it calls grid load over and over again, then calls itself. Take the setInterval OUT of the loadComplete.
So inside just do
from openjs-grid.
@iconner ha, thanks. Yea I wanna spend some quality time with RealTime. I'm using it for a lot of my clients now, hard to finish the consumer version.
from openjs-grid.
if the setInterval is removed how doe it fire off every 5sec.
from openjs-grid.
Remove that whole piece from the loadComplete. So after all the grid call, you will just do
setInterval(function() {
$grid.grid("load");
},5000);
from openjs-grid.
thanks i just figured it out with trial and error. You are awesome thanks for the help and this grid after working with it I am starting to like it and getting use to it after messing with it all day.
Thanks again
from openjs-grid.
My pleasure. Thanks for using it!
from openjs-grid.
question how do you add code to this
what is the comments before and after to insert code
from openjs-grid.
4 spaces before you start type, and then a line break before and after
this is 4 spaces
Here is a link to all the syntax you can do
http://github.github.com/github-flavored-markdown/
from openjs-grid.
Related Issues (20)
- Drag & Drop Option in OpenJS Grid HOT 2
- No users table in sample.sql HOT 5
- Select drop-down to fill all rows on a column HOT 3
- Visible rows HOT 4
- Column width when grid is opend
- Support Chinese (or non-English language) HOT 1
- openJs-Grid Support For ASP.NET MVC
- No copyright in grid.php HOT 1
- Loading forever HOT 7
- populate an OpenJS grip based on the value HOT 1
- How to join multi tables with INNER JOIN to view desired columns from tables HOT 4
- undefined console.log(value, columnOpts, grid); HOT 6
- Conversion/update to PDO HOT 58
- Search Box issues and bugs
- Blank Row Allow HOT 1
- Grid class pass query instead of tablename HOT 2
- How to change and save column type image value in database HOT 4
- I am trying to achieve group view functionality as shown in picture can u help in that. Thanks in advance HOT 2
- how can i make this work with codeigniter?
- No database selected HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openjs-grid.