Sunday, May 3, 2009

Sharepoint Customization using java script

We have a list, but we want to hide some of the fields from being displayed in the edit or new item screens. By default when you create a list and add columns, you can hide columns via custom views, but when you create or edit an item you get the lot, whether you like it or not.
Here is the WorkAround :
function getTagFromIdentifierAndTitle(tagName, identifier, title)
{
var len = identifier.length;
var tags = document.getElementsByTagName(tagName);
for (var i=0; i < tags.length; i++)
{
var tempString = tags[i].id;
if (tags[i].title == title && (identifier == "" tempString.indexOf(identifier) == tempString.length - len))
{
return tags[i];
}
}
return null;
}

(script language="javascript" type="text/javascript")
_spBodyOnLoadFunctionNames.push("hideFields");
function hideFields()
{
var control = getTagFromIdentifierAndTitle("Input","TextField","Serial Number");
control.parentNode.parentNode.parentNode.style.display="none";
}
(/script)

Tuesday, April 28, 2009

WSS 3.0 Vs MOSS 2007

Microsoft Office SharePoint Server 2007
Microsoft Office SharePoint Server 2007 is a collaborative enterprise portal that is built upon WSS 3.0. MOSS 2007 allows people, teams and expertise to connect and collaborate. Unlike WSS, SharePoint Server is not free and requires an additional license. MOSS 2007 comes in two versions – Standard and Enterprise.
The main components of SharePoint 2007 are collaboration, portals, enterprise search, enterprise content management, business process and forms, and business intelligence. Previous versions of SharePoint Server included SharePoint Portal Server 2003 and before that SharePoint Portal Server 2001. To preview SharePoint’s new features visit the Microsoft Office
SharePoint Server 2007 demo.
Windows SharePoint Services 3.0
Windows SharePoint Services 3.0 is the platform on which all SharePoint Products and Technologies are built. WSS 3.0 is for is suitable for small teams, projects and organizations.
WSS’s project collaboration, document workspace, meeting sub-site, and discussion board features allow individuals and small teams to collaborate and share information online. Past versions of Windows SharePoint Services included Windows SharePoint Services 2.0 and SharePoint Team Services. New features in WSS 3.0 include integrated workflows, RSS feeds, blogs, wikis and ASP-style Web parts. To preview more of WSS 3.0’s new features visit the Microsoft
Windows SharePoint Services 3.0 demo.

What is SharePoint?

SharePoint is an enterprise information portal, from Microsoft, that can be configuredto run Intranet, Extranet and Internet sites. Microsoft Office SharePoint Server 2007allows people, teams and expertise to connect and collaborate. A SharePoint enterprise portal is composed of both SharePoint Portal and Windows SharePoint Services, with SharePointbeing built upon WSS. WSS is typically used by small teams, projects and companies. SharePointServer is designed for individuals, teams and projects within a medium to large company wide enterprise portal.

Monday, April 27, 2009

Dynamic RadMenu Telerik control in sharepoint.

Steps:
1.Install AJAX Extensions and register required web.config entries. For More Details http://sharepoint.microsoft.com/blogs/mike/Lists/Posts/Post.aspx?ID=3
2.Register following two entries into SafeControls tag of web.config for telerik controls.


3.Register following entry into SafeControls tag of web.config file for code behind file

4.Register following entry into tag of web.config file for telerik control

5.Add following register tag into master page.
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI, Version=2007.3.1425.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" %>
6.Replace Master tag with following tag in master page.
<%@ Master language="C#" inherits="DynamicMenuCodeBehind.DynamicMenuCodeBehind, DynamicMenuCodeBehind, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a8f881868076fc9f"%>
7.Add RadMenu control tag into master page wherever required in master .



8.Change the Skin of RadMenu as per requirement.
9.Create custom list “MenuLinks”
10.Register
Telerik.Charting.dll, Telerik.Web.UI.dll and DynamicMenuCodeBehind.dll assemblies in GAC
11.Copy Skins folder into virtual directories folder like “C:\Inetpub\wwwroot\wss\VirtualDirectories\22543”

Prerequisite :
Skins Folder( DownLoadable)
Telerik.Charting.dll
Telerik.Web.UI.dll
ASPAJAXExtSetup

Code Behind: