Home › Forums › Guriddo jqGrid JS › Help › jqgrid with jquery ui tabs and json
Hello jqgrid experts
I started writing an application using codeigniter as php framework for database access and MVC on the server side an jquery and jqgrid on the client side.
Hello,
From what I see into the code you call every time the creation of grid when a tab is selected.
Here you can solve the problem diffrent ways
1. Use GridUnload method before constructing the grid – e.g
$(”#volunteer_grid”).GridUnload();
$(”#volunteer_grid”).jqGrid({…});
2. Check to see if the grid is already created and if so just open a tab (or maybe trigger the grid to refresh the data)
var maygrid = $(”#volunteer_grid”);
if(mygrid[0].grid) {
// refresh it mybe
} else {
// create grid
}
Best Regards
Tony
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS