Forum
15:19
27/03/2012
Hi folks,
After deleting a record in a tree-view grid, the icons not change.
For example, a parent with a single leaf only: when I delete this single leaf, I'm expecting to see the parent's icon change to a leaf icon because it has no children anymore.
Only if I physically reload the page, the currect icons are seen.
Any idea how to solve it?
Thank you,
Yair
18:31
Moderators
30/10/2007
Hello,
This is not automatically done, since you do custom delete.
You alredy have a solution - reloading the grid.
Regards
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
19:34
27/03/2012
tony said:
Hello,
This is not automatically done, since you do custom delete.
You alredy have a solution - reloading the grid.
Regards
Hi Tony,
I don't have a solution, the refresh i'm doing is clicking on Refresh button in the browser.
Now I did:
afterSubmit: function(response, postdata){
window.location.reload();
return [true, 'ok'];
}
I don't really like this solution because the main aim of this function is to return array and i'm suppresses it when doing the reload.
Any other idea?
20:23
Moderators
30/10/2007
Hello,
What about reloading the grid after delete and not the whole page.
$("#grid").trigger("reloadGrid"); - this reload the grid.
Also if you use build in delete dialog you can just set - reloadAfterSubmit : true.
Regards
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
00:22
27/03/2012
tony said:
Hello,
What about reloading the grid after delete and not the whole page.
$("#grid").trigger("reloadGrid"); - this reload the grid.
Also if you use build in delete dialog you can just set - reloadAfterSubmit : true.
Regards
Hi,
Look, the grid is reloaded the with new data but the icons are not change.
There is no way to "recalculate" the tree and show the right icons?
Yair
Most Users Ever Online: 715
Currently Online:
58 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66