Posts

Showing posts from October, 2013

Out-Of-The-Box (OOTB) Features in SharePoint 2010

Out-Of-The-Box (OOTB) Features in SharePoint 2010 What does mean Out of the Box in SharePoint 2010 ? Features we develop are not out of the box. They are customization or developed using the SDKs. WSS3.0 had its out of box features.   Out of the box just means something that comes with the product when you buy it. Out of the box SharePoint 2010 Workflow: Disposition Approval Three State Collect Feedback Approval Collect Signatures SharePoint 2010 out of the Box Web Parts Lists and Libraries -  - Announcements - Calendar - Contacts - Links - Shared Documents - Tasks - Team Discussions Media and Content - Content Editor - Image Viewer See this link for more details

what is feature in sharepoint?

A SharePoint Feature is a functional component that can be activated and deactivate at various scopes throughout a SharePoint instances. Scopes include Farm WebApplication Site (site collection) Web (site) Features have their own receiver architecture, which allow you to trap events such as when a feature is installing uninstalling activated deactivated The element types that can be defined by a feature include menu commands link commands page templates page instances list definitions list instances event handlers workflows The two files that are used to define a feature are feature.xml manifest file(elements.xml) The feature XML file defines the actual feature and will make SharePoint aware of the installed feature. The manifest file contains details about the feature such as functionality. Common stsadm commands associated with feature are stsadm -o installfeature stsadm -o uninstallfeature stsadm -o activatefeature stsadm -o deactivatefeature Pleas

Event receivers in sharepoint 2010

Image
Event receivers in SharePoint 2010: An event receiver is a class that contains one or more methods known as event handlers that are executed automatically by SharePoint in response to events such as adding item to a list.  You can use event handlers for data validation, data integrity etc. SharePoint categories events into of two types 1. Before events (synchronous events) 2. After events (asynchronous events). 1. Before events (synchronous events): These events fires before an action occurs and before SharePoint has written any data to the content database. For example ItemAdding event will fire when trying to add an item to a list. These events does support cancelling of event action. These events are always end with 'ing' like FieldAdding, ItemAdding, ItemUpdating, WebAdding, WebDeleting etc. These events are also know as synchronous events.   2. After events (asynchronous events): These events fire after the event action has completed and after S

Get SharePoint Groups a user is member of using SharePoint Client Object Model(silverlight & web service)

Get SharePoint Groups a user is member of using   SharePoint Client Object Model(silverlight & web service) Here i will explain how to get all groups for a specific user(who is member of those group) using silverlight and web service. In this code we are calling  GetGroupCollectionFromUserAsync   web method of the SharePoint UserGroup.asmx web service. You can see all kind of methods by typing the following url in browser http://<site  url>/_vti_bin/UserGroup.asmx Steps: For detiled steps  see this link  In your silverlight program add a service reference, and type the following url http://<site  url>/_vti_bin/UserGroup.asmx Give a name(I gave as  UGService ) Add the following Code. C# Code: // Create a object of the UserGroupSoapClient class UGService. UserGroupSoapClient service = new UGService. UserGroupSoapClient ();     // Define the Event handler method and Async event service.GetGroupCollectionFromUserCompleted += new EventHandler < G

Silverlight dataGrid Simple Example:

Image
Silverlight dataGrid Simple Example: Use the following Code. Output: xaml code: Use the following code inside your xaml   <sdk:DataGrid AutoGenerateColumns =" True " Height=" 201 " HorizontalAlignment=" Left " Margin=" 10,10,0,0 " Name=" dataGrid1 " VerticalAlignment=" Top " Width=" 167 " /> C# code: using  System; using   System.Collections.Generic; using   System.Linq; using   System.Net; using   System.Windows; using   System.Windows.Controls; using   System.Windows.Documents; using   System.Windows.Input; using   System.Windows.Media; using   System.Windows.Media.Animation; using   System.Windows.Shapes; using   System.Windows.Data; namespace  samp {      public  partial class MainPage : UserControl     {            public  MainPage()           {               InitializeComponent();               loaddata();           }            private  void loaddata()           {                L

Template column in datagrid silverlight

Image
Template column in datagrid silverlight: In silverlight datagrid you can use any control inside the datagrid using this template column. And also you can use all the events of the controls which you used as a template column(ie you can create MouseLeftbuttonDown, MouseLeftButtonUp etc...) Output : xaml code:   <sdk:DataGrid AutoGenerateColumns =" False " Height ="141"   Margin ="10,10,0,0" Name =" dataGrid1 "   Width ="210" >             <sdk:DataGrid.Columns>                 <sdk:DataGridTemplateColumn Width="200" Header=" User ID "  CanUserReorder=" True " CanUserResize ="True" CanUserSort="True" >                     <sdk:DataGridTemplateColumn.CellTemplate>                         <DataTemplate>                             <TextBlock x:Name="textBox1" Text="{Binding UserID}" TextWrapping=" Wrap " Too

Item-level Permissions For SharePoint List

Image
Item-level Permissions For SharePoint List Now you can add permission for each item in a list item,That can be only editable by who create that item.Or we can add only read permission for each item in Sharepoint But Keep in mind that user should not have more than contributor Permission level Steps Go to  List settting . Go to  Advance setting . In advance setting we have " Item-level Permissions " as one of option. This option have two  sub options . For  Read Accesss   select " Read items that were created by the user " For  Create and Edit access  select " Create items and edit items that were created by the user "  Save the above settings. Below is the screen shot for above mentioned setting: Please see this  Link For More Details

Clickable GridView/ Databound Ind GridView Simple Example:

Image
Clickable GridView/ Databound Ind GridView Simple Example: Here I will explain how to create clickable/Databound GridView Columns  in Asp.Net with simple example.Here Im using a class and custom list to bind the GridView and Chart controls. Output: Steps: Open Vusual studio=> new=> web => Asp.net empty web application=> Give name(i gave as ClickableGridView)=> ok solution explorer=> add => new item=> Web Form=>ok Go to toolbox=> GridView (double click the gridview) and add some databound columns see the following code Include the following namespace in .cs page using System.Collections.Generic; Xaml Code:   <asp:GridView ID=" GridView1 " runat=" server " AutoGenerateColumns="false">         <Columns>          <asp:BoundField DataField=" Name " HeaderText="ColumnTitle1(Name)"  />           <asp:BoundField DataField=" Count " HeaderText="

GridView Databinding and Chart Databinding in ASP.Net Simple Example

Image
GridView Databinding  and Chart Databinding in ASP.Net Simple Example: Here I will explain how to bind GridView and Chart control in Asp.Net with simple example.Here Im using a class and custom list to bind the GridView and Chart controls. OutPut: Steps: Open Vusual studio=> new=> web => Asp.net empty web application=> Give name(i gave as GridViewAndChart)=> ok solution explorer=> add => new item=> Web Form=>ok Go to toolbox=> GridView (double click the gridview)=>chart(double click the chart.) Include the following namespace in .cs page using System.Collections.Generic; Xaml Code: If you double click on the control then these codes will be automatically came, otherwise add the following code between div tag   <asp:GridView ID=" GridView1 " runat="server">         </asp:GridView>         <asp:Chart ID =" Chart1 " runat="server">             <Series>