Edward Posted October 21, 2013 Share Posted October 21, 2013 Hello Jonathon, i wanted to ask you have you had issues with the CGridView not updating sometimes when you do an Ajax update to say remove an item you have from the Grid? For me it seems to work on and off, the changes in the database were correct indicating code was correct, even my counters updated but the grid sadly did not. Link to comment Share on other sites More sharing options...
Jonathon Posted October 21, 2013 Share Posted October 21, 2013 Hi Edward, No I've never had that problem, biggest problem I had was just making sure the initial data was passed properly to be updated. Link to comment Share on other sites More sharing options...
Edward Posted October 21, 2013 Author Share Posted October 21, 2013 Lucky for you then, well i really think at some point i am going to have to fully investigate the matter but for now my website runs well enough even though it has a buggy grid. I will definitely post back here when i figure out what it is. Thanks for help. Edward. Link to comment Share on other sites More sharing options...
Edward Posted October 22, 2013 Author Share Posted October 22, 2013 When i run the method below twice the grid ajax update then works 100% but its takes a bit longer, hmm... I guess this solution works when a website is newly starting up and its slow. $('#my-grid-id').yiiGridView('update'); 1 Link to comment Share on other sites More sharing options...
Recommended Posts