how to get the server side events ?

5 posts, 0 answers
  1. ashok kumar
    ashok kumar avatar
    13 posts
    Member since:
    Aug 2009

    Posted 03 Nov 2009 Link to this post

    Admin ,

    i would like how to get the server side events when a file is uploaded,deleted and viewed (in sense when a file name is double clicked ) , i am going to keep track of user action who have done what , i am using RadFileExplorer inside the RadTabStrip , please let me know ASAP , waiting for your reply ,

    thanks in advance ,

    Ashok.c
  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 04 Nov 2009 Link to this post

    Hello ashok,

    The RadFileExplorer control provides one server side event - OnItemCommand, which is called on the following commands:

    • UploadFile - fired before each uploaded file is saved
    • MoveDirectory - fired before a directory is moved/renamed
    • CreateDirectory - fired before the file explorer creates a new folder
    • DeleteDirectory - fired before the file explorer deletes a folder
    • DeleteFile - fired before a file is deleted
    • MoveFile - fired before a file is moved/renamed

    More information about this is available below:

    http://www.telerik.com/community/forums/aspnet-ajax/file-explorer/information-about-event.aspx


    Regards,
    Svetlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. ashok kumar
    ashok kumar avatar
    13 posts
    Member since:
    Aug 2009

    Posted 04 Nov 2009 Link to this post

    can you please show me a sample of code on OnItemCommand how to fire the respective events

    Regards ,

    Ashok.C

  4. ashok kumar
    ashok kumar avatar
    13 posts
    Member since:
    Aug 2009

    Posted 05 Nov 2009 Link to this post

    Svetlina ,

    i have finished working on server side events of file upload and delete , i would like to know how to handle the server side event of which file is being viewed , looks like i  to need to handle the client open event (OnClientFileOpen) and make an postback or ajax request there with the selected file name., i would like to have sample code how to make a post back from this js function , Please give a sample js function and codebehind code hanldling that particular file which is being viewed :)

    Thanks in Advance ,

    Regards ,

    Ashok.c


  5. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 05 Nov 2009 Link to this post

    Hello ashok,

    What I can suggest to perform an ajax request from the client is the following:

    1) use the RadAjaxManager and its jaxRequest method as explained below:

    http://www.telerik.com/help/aspnet-ajax/ajxajaxmanager.html

    2) You can pout a hidden button in an update panel and use teh built-in javascript __doPostBack function as explained below:

    http://geekswithblogs.net/mnf/archive/2005/11/04/59081.aspx


    Greetings,
    Svetlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top