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

DoubleClick on Folder

6 Answers 109 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Pavel Trnka
Top achievements
Rank 1
Pavel Trnka asked on 04 Aug 2009, 02:10 PM
Hi,

I'm using SPContentProvider class and RadFileExlorer which shows data from Document Library. I wanna disable the redirect (which shows path ".../Forms/Standard.aspx?RootFolder=...") that occurrs when a user makes double click on a directory. How can I achieve this?

I tried following code but without success:

function ClientItemSelected(oExplorer, args) {
  var item = args.get_item();
  if (item.isDirectory()) {  
   args.set_cancel(true);
  }

 }


Thank you!

6 Answers, 1 is accepted

Sort by
0
Accepted
Fiko
Telerik team
answered on 05 Aug 2009, 12:03 PM
Hello Pavel,

The approach that you used is correct. You need, however, to use the OnClientFileOpen event in order to achieve the desired result.

I hope this helps.

Best wishes,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Pavel Trnka
Top achievements
Rank 1
answered on 05 Aug 2009, 01:46 PM
:)

Thank you Fiko!

Pavel
0
Karthik Ulaganathan
Top achievements
Rank 1
answered on 08 Dec 2009, 08:48 PM
Hi Pavel \ Fiko,

     Can any one please send me the notes/code on how you implemented the spcontent provider class and the Rad file explorer to display the contents from document library.

Thanks & Regards,
Karthik.
0
Fiko
Telerik team
answered on 09 Dec 2009, 02:17 PM
Hello Karthik,

I believe that this blog post will be of help.


Best wishes,
Fiko
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
Karthik Ulaganathan
Top achievements
Rank 1
answered on 09 Dec 2009, 07:47 PM
Hi Fiko,

     Thanks for the document! I went throught the document and completed step 1 and step 2. But, i am not sure what and how to provide the content provider type name in step 3, which is stated as follows:

(3. When you add the RadFileExplorer in your web part, you need to set the [RadFileExplorer].Configuration.ContentProviderTypeName property to the SPContentProvider class) 

Also, i could see the control is working fine for me when i try to explore my file system in OS. But, do we have any more documents which shows the conrol's connectivity to database tables or dataset.

Thanks & Regards,
Karthik.


  
0
Fiko
Telerik team
answered on 14 Dec 2009, 03:54 PM
Hi Karthik,

 I believe that this online demo will be of help. Also I recommend you check this code library as well (it is based on the demo).

I hope this helps.


Regards,
Fiko
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.
Tags
FileExplorer
Asked by
Pavel Trnka
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Pavel Trnka
Top achievements
Rank 1
Karthik Ulaganathan
Top achievements
Rank 1
Share this question
or