DoubleClick on Folder

7 posts, 1 answers
  1. Pavel Trnka
    Pavel Trnka avatar
    7 posts
    Member since:
    Aug 2012

    Posted 04 Aug 2009 Link to this post

    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!

  2. Answer
    Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 05 Aug 2009 Link to this post

    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.
  3. Pavel Trnka
    Pavel Trnka avatar
    7 posts
    Member since:
    Aug 2012

    Posted 05 Aug 2009 Link to this post

    :)

    Thank you Fiko!

    Pavel
  4. Karthik Ulaganathan
    Karthik Ulaganathan avatar
    11 posts
    Member since:
    Dec 2009

    Posted 08 Dec 2009 Link to this post

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

    Posted 09 Dec 2009 Link to this post

    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.
  6. Karthik Ulaganathan
    Karthik Ulaganathan avatar
    11 posts
    Member since:
    Dec 2009

    Posted 09 Dec 2009 Link to this post

    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.


      
  7. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 14 Dec 2009 Link to this post

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