auto reloading phpgrid

Questionsauto reloading phpgrid
tushar asked 11 years ago

I want to auto reload the phpgrid every 1 minute, as new data will be added to the database every minute. In all the examples, there is no Auto Reload available.
How can it be done? Please share a sample code.

Regards,

2 Answers
Abu Ghufran answered 11 years ago

Seems like you are doing some very interesting implementation.
Here is the code to auto reload.

setTimeout("jQuery('#list1').trigger('reloadGrid',[{page:1}]);",1000);

Where list1 is the grid identifier you passed in render().

César answered 11 years ago

Thanks very thanks, I searched everywhere that function.

I have an operation with two fields, a third field shows the result but did not update.

Field1 + Field2 = Field3
1 2 = 3

Update, but just in DB cause in the grid showing me:
Field1 + Field2 = Field3
4 2 = 3

Now, i can update in DB and the Grid with that.

Your Answer

10 + 3 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?