Showing posts with label Docuement library. Show all posts
Showing posts with label Docuement library. Show all posts

Tuesday, March 29, 2016

How to change SharePoint list field color using jquery code base on value?

In this below script, hange SharePoint list field color using jquery code

change SharePoint list field color
 $("table.ms-listviewtable > tbody > tr > td:nth-child(columnNumber) > div").filter(function() {
        ( parseInt( $(this).text() ) > 59 ) ? $(this).css("background-color", "#00FF66") : null  
    });

How to open a calendar item in a modal dialog?

In this below script, open a calendar item in a modal dialog

open a calendar item in a modal dialog In SharePoint
function openDialog(pageUrl) {
  var options = {
      title : "calender",
      width : 500,
      height : 400,
      url : pageUrl
  };

  SP.SOD.execute('sp.ui.dialog.js', 'SP.UI.ModalDialog.showModalDialog', options);
}

$('.ms-acal-month').ready(function () {
   setTimeout(function() {
       $('a[href*="DispForm.aspx"]').each(function() {
           $(this).attr('onclick', 'openDialog("' +  $(this).attr('href') + '")');
           $(this).attr('href','javascript:void(0)');
       });
   }, 1000);
});

Monday, March 7, 2016

File size limit and/or update count limit List and Library



Maximum file size limit is 2 GB

Default values are:

For SharePoint 2013: default max file size is 250 MB
For SharePoint 2007/2010: default max file size is 50 MB











https://technet.microsoft.com/en-us/library/cc262787(v=office.14).aspx#ListLibrary

Wednesday, March 2, 2016

How to Insert New Item Into SharePoint List Programmatically

using (SPSite spSite = new SPSite(strSiteUrl, token))
{
spSite.AllowUnsafeUpdates = true;
using (SPWeb spWeb = spSite.OpenWeb())
{


SPList spList = spWeb.Lists["Enquiry"];

SPListItem spListItem = spList.Items.Add();

spListItem["Title"] = "Peak";
spListItem["Location"] = "India";


spWeb.AllowUnsafeUpdates = true;
 spListItem.Update();
}

}

Thursday, February 18, 2016

Drag & Drop in SharePoint Document libraries in SharePoint 2010

Please follow the below url step
In that article ,Have script file we have to add content editor webpart.

Some restriction will be restrictions. 


http://dandd.codeplex.com/