This is a migrated thread and some comments may be shown as answers.

Refresh Event

3 Answers 137 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Samee Mir
Top achievements
Rank 1
Samee Mir asked on 10 Feb 2010, 02:16 PM
Hi,
Please tell me how the File Explorer refresh it self when a delete event or upload Event or Rename Event occurs. Actually i have added a new Column called Sequence which is displaying a value from database. Then i added a contextMenuItem which increments or decrements the sequence value in database. The whole functionality is being achived but i have to refresh the control from toolbar in order to see the most resent value of the folders. kindly tell me some way to refresh the file explorer and also functionality should not be disturbed. I think there should be some way to do this.

Regards,
Samee Javaid

3 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 15 Feb 2010, 07:36 AM
Hello Samee,

RadFileExplorer uses callbacks in order to load and refresh its content. In your case, however, you do not need to deal with this complex client-server communication, because the control exposes a method called refresh. This method performs all the necessary actions in order to refresh the currently selected folder. If you need to refresh the content of the RadFileExplorer and not just the current folder, then you can use the set_currentDirectory method and set the current directory to be the root directory in the TreeView. Then if you call the refresh() method all of the RadFileExplorer's content will be refreshed.

I hope this helps.

Regards,
Fiko
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Samee Mir
Top achievements
Rank 1
answered on 15 Feb 2010, 08:26 AM
Thnx Fiko,
Can you please provide me some coding example???

Regards,
Samee Javaid    
0
Fiko
Telerik team
answered on 18 Feb 2010, 07:22 AM
Hi Samee,

For your convenience I have attached a working example to the thread. Please note that maybe you will need to change the application's root directory. The "/FileExplorer_" is the root directory of my test project. 

I hope this helps.

Greetings,
Fiko
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
FileExplorer
Asked by
Samee Mir
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Samee Mir
Top achievements
Rank 1
Share this question
or