Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_Related Related Topics sp_TopicIcon
Icons not change after delete
27/03/2012
15:19
Avatar
Yair Nevet
http://yairnevet.blogspot.com/
Member
Members
Forum Posts: 3
Member Since:
27/03/2012
sp_UserOfflineSmall Offline

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

27/03/2012
18:31
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

27/03/2012
19:34
Avatar
Yair Nevet
http://yairnevet.blogspot.com/
Member
Members
Forum Posts: 3
Member Since:
27/03/2012
sp_UserOfflineSmall Offline

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?

27/03/2012
20:23
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

28/03/2012
00:22
Avatar
Yair Nevet
http://yairnevet.blogspot.com/
Member
Members
Forum Posts: 3
Member Since:
27/03/2012
sp_UserOfflineSmall Offline

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

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information