Giter Club home page Giter Club logo

Comments (13)

optikalefx avatar optikalefx commented on June 12, 2024

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.

ioconnor avatar ioconnor commented on June 12, 2024

Be cool if the changes were pushed instead of pulled.

from openjs-grid.

optikalefx avatar optikalefx commented on June 12, 2024

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.

ioconnor avatar ioconnor commented on June 12, 2024

You need to hire a team of people to write tutorials using your fantastic tools.

from openjs-grid.

tokick4 avatar tokick4 commented on June 12, 2024

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.
ScreenHunter_01 Feb 12 15 15

from openjs-grid.

optikalefx avatar optikalefx commented on June 12, 2024

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 $grid.grid("load"); instead of $(self)

from openjs-grid.

optikalefx avatar optikalefx commented on June 12, 2024

@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.

tokick4 avatar tokick4 commented on June 12, 2024

if the setInterval is removed how doe it fire off every 5sec.

from openjs-grid.

optikalefx avatar optikalefx commented on June 12, 2024

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.

tokick4 avatar tokick4 commented on June 12, 2024

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.

optikalefx avatar optikalefx commented on June 12, 2024

My pleasure. Thanks for using it!

from openjs-grid.

tokick4 avatar tokick4 commented on June 12, 2024

question how do you add code to this
what is the comments before and after to insert code

from openjs-grid.

optikalefx avatar optikalefx commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.