jeudi 26 mars 2015

update on change by ajax in yii gridview


I've got a simple table tbl_task in my database with the followings attributes:



  • id int auto_increment

  • description varchar

  • complete boolean


Now I created a gridview. the value of the complete attribute is shown by a checkbox. There should be the possibility to change the value of the complete attribute. If you do that, it should save the changes in the database. Meanwhile the gridview gets every 3 seconds the newest records from the database.


I've tried to adapt the gridview js file but it doesn't work.


Does anyone has an idea how to solve my problem?


Many thanks in advance.





Aucun commentaire:

Enregistrer un commentaire