jQWidgets Forums
jQuery UI Widgets › Forums › Grid › Auto Refreshing and updating on checkbox
Tagged: #jqwidgets-grid, grid, javascript grid, jquery grid
This topic contains 3 replies, has 2 voices, and was last updated by Hristo 6 years, 4 months ago.
-
Author
-
Hello all, forgive me if these questions have been answered, it’s late and my reading comprehension is decreasing, lol. I’ve successfully set up a grid and imported my data into it from my MySQL database. What I’d like to be able to do at this point is to periodically refresh the grid to catch any new rows that have been added to the database and when I do this I’d like to be sure to keep my current page location even if a row has not been selected on it.
The second thing is how can I make use of clicking a check box to trigger the update function? Is that just something that is automatically triggered when the check box value is changed?
Thanks!
Hello abishur,
I would like to suggest you look at this forum topic, where we have a similar discussion.
Could you clarify it what you mean by “clicking a checkbox to trigger the update function”?
The functionality of each one widget as the bound to an event is implemented by the customer with own logic.
If you mean that to use separate jqxCheckBox – it has a change event.Also, I would like to suggest you look at this tutorial:
https://www.jqwidgets.com/jquery-widgets-documentation/documentation/phpintegration/bind-jquery-grid-to-mysql-database-using-php.htm?search=Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comI made a second post with what I think is an unrelated issue, but just in case there is some cross over here’s a link for anyone else who lands in this thread.
https://www.jqwidgets.com/community/topic/checkbox-column-disappearing/Ah, my wording was a little nebulous, sorry. When I say click on a check box to trigger an update function I mean when I click on the checkbox I want to send a GET request to my php file that contains the event.args.datafield of the checkbox clicked, the value of another column in the same row, and the new value of the checkbox.
Hello abishur,
Thank you for this answer.
About the second part (with the checkbox) you could use this approach in this demo.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.