Refresh Event

4 posts, 0 answers
  1. Samee Mir
    Samee Mir avatar
    26 posts
    Member since:
    Jan 2010

    Posted 10 Feb 2010 Link to this post

    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
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 15 Feb 2010 Link to this post

    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.
  3. Samee Mir
    Samee Mir avatar
    26 posts
    Member since:
    Jan 2010

    Posted 15 Feb 2010 Link to this post

    Thnx Fiko,
    Can you please provide me some coding example???

    Regards,
    Samee Javaid    
  4. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 18 Feb 2010 Link to this post

    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.
Back to Top