More in this section

Forums / Developing with Sitefinity / Files section - events not firing

Files section - events not firing

3 posts, 0 answered
  1. Adam
    Adam avatar
    33 posts
    Registered:
    23 Feb 2009
    08 May 2010
    Link to this post
    Hi,

    We are trying to add some auditing capabilities to the files section of the CMS (/sitefinity/admin/files.aspx).

    The files section contains a control called "ManageFiles" with an id of "fileManager". This control exposes 3 events that we need to react to in the codebehind of the files.aspx page: OnItemCreated, OnItemDeleted and OnItemRenamed. When those events get fired, we need to commit a record to the database describing the action to the file (update, added, deleted) and the user behind that action (the identity username of the authed CMS user).

    The problem is, those events are not firing at all.

    Is there a workaround or a patch you could send us? I'm open to any solution at this point: all we need to know is the full path of the file and the action performed on it. Note that using the filesyswatcher is NOT an option, because it is unstable in our experience.

    Please help ASAP! Our client is expecting this feature to be implemented soon, as it was part of their old CMS.


    Thanks!
  2. Adam
    Adam avatar
    33 posts
    Registered:
    23 Feb 2009
    08 May 2010
    Link to this post
    BTW - this pertains to ver. 3.7, sp2
  3. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    10 May 2010
    Link to this post
    Hi Adam,

    The events OnItemDeleted, OnItemCreated and OnItemRenamed are not used in Telerik.FileManager.ManageFiles control. The control does not expose events that you could use to track the files changes. ManageFiles wraps another control - FilesGrid where OnFolderStructureChanged event is called for Delete, Rename and Create operations. The event is used only to notify the RadGrid to rebind.
    Your task requires a custom module or a new backend section.

    Best wishes,
    Ivan Dimitrov
    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.
Register for webinar
3 posts, 0 answered