Closed trcharlie closed 11 years ago
So you shouldn't modify grid.js
1) You can add a button in the loadComplete event using jQuery. 2) Then bind an click event to that and do your ajax work. 3) Then call .load() as normal to reload it after the ajax call
I see, thanks a lot
I need an Add-Button in my Grids but I'm stuck when it comes to reloading the grid with the added Row. What i have done so far is:
in grid.js on line 664 I added:
in line 270 I added:
line 2004:
in grid.php the function add() is not a comment anymore. So if I click on the Add-Button, a new dataset is created in the database. BUT i need the grid to be refreshed. I tried this.grid("load"); and some other variants but none of them refreshed the grid. I'm sure there's just a line of code I'm missing so please help me.
regards, charlie