View sharepoint library subfolder's contents

Hi ,

I using sharepoint 2013,

This is my visual webpart , wen i click on left side doc library names means its contents are displayed at the right side div tag.

Now my requirement is for a doc library it has folders means, it displays its folder and if i click on that folder means it should display its contents also in the same block, but it navigates to the new tab.

Can anyone provide solution for this.

Regards,

RK

June 17th, 2013 8:31am

Hi RK,

I am trying to involve someone familiar with this topic to further look at this issue.

Thanks

Free Windows Admin Tool Kit Click here and download it now
June 21st, 2013 1:26pm

Hi,

Your visual webpart is on the left side. What's on the right side? List View WebPart or your own developed webpart? If you are using list view webpart on the right side, then it's difficult to customize. Can you please explain what you are planning to do? You can get the treeview using Publishing Feature (If you are using SharePoint Server).

June 24th, 2013 4:19am

Hi Sohel,

Left side is my visual webpart, i used the asp.net tree view control for to display all document libraries of the site.

Right side is the div tag alone in which i displaying the document library contents page, which is selected from that left side tree structure.

Now my requirement is, if the selected document library has sub folders means , when i click on that folder it will open in inside that div tag alone, but now its opening in a new tab.

Also tell me how to get treeview using Publishing Feature, since am using the SharePoint server only.

Regards,

RK.

Free Windows Admin Tool Kit Click here and download it now
July 12th, 2013 6:36am

Hey Karthik,

Quick question. The click that you are performing when the folder has subfolders is in the left hand side tree view or on the right hand visual web part ?

The reason for the question is that the event handling needs to be done on the appropriate control for the purpose.

Is the operation happening correctly on a new browser tab ? If so, are you using JavaScript Object Notation code to achieve this or is it plain Javscript over XML. We need to review this piece of code.

We need to know which event has been overridden to achieve the tab detail display. How have you originally achieved the display of the folder information functionality? Have you used the !Page.IsPostBack  method etc.

I differ from Sohel's remark because he is referring to the out of Box tree view control that SharePoint 2013 provides on the Look and Feel section without any publishing feature being enabled, and the out of box tree view event handler customization would not be a supported method . You have used a customized ASP NET Tree view control on the other hand.

But Fundamentally, we can intercept ongoing page events using javascript

<script src="/SharedDocument/jquery-1.7.1.min" type="text/javascript"></script> 
<script type="text/javascript">
        _spBodyOnLoadFunctionNames.push('your_function_name_here');

       function your_function_name_here() {

       <//Server code to display the folder items here

       }

Do let me know if you have any questions

Regards

Ram

November 6th, 2013 4:59am

Hi Karthick,

I suppose open in new tab or current depends on how you have bind link or link button.

Rather I would suggest to go with following solutions, to avoid item/folder based view/manage permissions using code.

http://yetanothersharepointblog.wordpress.com/2012/08/28/adding-a-treeview-to-a-document-library-using-sptreeview-and-sphierarchicaldatasource/

OR

http://www.codeproject.com/Articles/37530/Document-Library-Tree-View-Web-Part-for-SharePoint

Free Windows Admin Tool Kit Click here and download it now
November 6th, 2013 6:25am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics