This is a migrated thread and some comments may be shown as answers.
how to get the server side events ?
4 Answers 74 Views
This is a migrated thread and some comments may be shown as answers.
ashok kumar
Top achievements
Rank 1
ashok kumar asked on 03 Nov 2009, 06:28 PM
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

4 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 04 Nov 2009, 01:22 PM
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.
0
ashok kumar
Top achievements
Rank 1
answered on 04 Nov 2009, 01:34 PM
can you please show me a sample of code on OnItemCommand how to fire the respective events

Regards ,

Ashok.C

0
ashok kumar
Top achievements
Rank 1
answered on 05 Nov 2009, 10:42 AM
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


0
Svetlina Anati
Telerik team
answered on 05 Nov 2009, 01:51 PM
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.
Asked by
ashok kumar
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
ashok kumar
Top achievements
Rank 1
Share this question
or