using sharepoint OOTB DragDrop.js library in Custom webpart - sharepoint

I implemented drag and drop file upload functionality using REST api in my webpart .
But i found an OOTB sharepoint dragdrop.js library which has numerous methods to create drag drop control.
Does anyone has an example to create a dragdrop control using this OOTB dragdrop.js?
Thanks in advance.

Related

SharePoint online list forms customization

In SharePoint online, we can customize the forms and implement functionality using PowerApps, SPFX , a part from these 2 options do we have any other option with which we can customize the forms and functionality.
The short answer is NO.
And Power Apps is the most recommended way to easily customize the form for a SharePoint list or SharePoint document library, also, will fully replace InfoPath.

Custom SharePoint List forms in SharePoint Framework

We are migrating old SharePoint 2010 On Premise code to SharePoint Online.
Part of the SharePoint 2010 on premise code has custom list forms developed with visual Studio.
Thought of using JSLink for custom forms while migrating the code to SharePoint Online but it seems that JSLink is only supported in classic experience and not in modern new experience.
Is there any way we can develop custom list forms on SharePoint Online with modern new experience? Is it possible with SharePoint Framework?
Note:
Tried by adding forms to list instances on SharePoint Hosted Add In but it targets the AppWeb lists and not the lists on HostWeb.
Well you can use react in modern web part to build any custom form. We can reuse components.
Another option is to use Power Apps similar to info path to design and add validation on list form.
https://abdulazizfarooqi.wordpress.com/
Another option is to use Content Editor webpart and add bootstrap html forms.
I hope it may help u.
Coding in Classic View is the only solution to your query. Once you are done coding in classic, you can switch/migrate to Modern View Experience.
In this way, your form will be visible and lists will also be consumed.
Nope!.. Modern sites are totally different development model So JSLink is not possible but you can use SharePoint framework extension to achieve the customization for the list.
Please follow the link below
JSLink to SPFX extensions
Please mark if accepted as answer

What is the best way to create an Html Table out of a sharepoint list in a Web Part?

I want to create a deployable .wsp Web Part and I want to fetch a Custom List and show it in an Html Table inside that web part.
I know how to create a .wsp web part, and I can also create the table overriding the RenderContents or CreateChildControls methods of WebPart class.
But I want to know the easy and best method for outputting an Html Table in a WebPart.
Should I use a UserControl so that, I can add any Asp.Net controls inside it and then load it in the Web Part ??
Please tell me any solutions ?
Puneet i would recommend using Data View webparts which uses xslt to customize the view in which a list data is rendered.
You can take help of SharePoint Desginer to add a Data View Web Part.
http://www.lcbridge.nl/vision/2009/dvwp.htm
Check out this video. It shows how to build a Visual Web Part (one that uses a user control for UI) in Visual Studio 2008 and shows how to bind data from a list to a GridView control.
http://www.vimeo.com/11285888

Creating Dynamic Sitemap in SharePoint

I have developed a publishing portal in sharepoint.I have a requirement wherein I need to create sitemap for the entire web application.
This should be dynamic, in the sense, whenever we update the contents of any given page in our web application, it should be reflected immediately in the sitemap page. What are the possible ways to achieve this and which is the best possible solution considering the scalability and easy configuration?
Thank you.
If you don't want to use a custom webpart, you could use normal navigation list to create your sitemap and it is automatically updated. You only need to style it in a way to resemble some kind of sitemap.
Here are some links to get you started with customizing your navigation:
Custom Navigation in SharePoint - The Full Monty
How to: Customize Navigation
Also there is the portal site map which provides the data source for your custom menu. Just read up on custom navigation and stuff like PublishingNavigation:PortalSiteMapDataSource and SharePoint:AspMenu.
There is a nice PowerShell script to create a sitemap for SHarepoint 2010, if you want to submit your sitemap to Google: Generate A Sitemap For SharePoint 2010 Using PowerShell'.
You can also install and customize the SharePoint Web part ("Table of Contents") to your liking. Read up on it here...
Take a look at our ECS product, it is close to what you need
http://www.infowisesolutions.com/product.aspx?id=ECS
It was built as a system of cross site collection navigation, with security trimming and permissions inheritance between site collection.

Can I use custom Document Information Panel with SharePoint services (not MOSS)

I know it is possible by using MOSS + InfoPath to create and use custom Document Information Panel.
However is it possible to write custom InfoPath XML schema and then add it to Content Type definition programmatically or declaratively... Is that possible? Maybe somebody tried something like that?
Yes. Here's a video on Channel 9.

Resources