refresh tree manualy from code? How Options
lpastor
Posted: Friday, October 17, 2008 3:28:49 PM

Rank: Aficionado

Joined: 8/4/2008
Posts: 111
Location: Serbia
Hi

I made a new section , and fill tree with some files from umraco folder (PDF) so when user click on tree element in right widow get a link to pdf document and it can be view in new windows ...is is work
BUT
I add a check box for delete and on save button this file is beenig deleted form file system but in tree this node stay until I MANUALY don't refresh the tree. Can it be done form code ?

also I like form code to set focus to main windows or refresh the right window in order to remove previous data from deleted file


Dirk
Posted: Saturday, October 18, 2008 9:27:04 AM

Rank: Umbracoholic

Joined: 9/27/2007
Posts: 1,123
Location: Belgium
Hi lpastor,

Have a look at the existing code base, as the other sections behave exactly the same way. I would point you to some file, but haven't done such things before. I guess you'll have to find some 'Save' methods and found out how the refresh is triggered.

Regards,
/Dirk


level 1 & 2 certified - umbraco MVP 2008/2009 - umbraco blog at netaddicts.be - working on an integrated forum4umbraco
DeNY
Posted: Saturday, October 18, 2008 1:16:11 PM
Rank: Enthusiast

Joined: 1/7/2008
Posts: 39
Hi,
You can try to call javascript function "refreshTree" from your code. Before this function must be registered at your page class.
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.