Wednesday, 28 November 2012

Ajax Control Toolkit working with SharePoint 2010?

In this article,how we can use the Ajax Control Toolkit in Sharepoint 2010.using this sharepoint designer and Visuval studio.


1.Download the Ajax Control Toolkit from this url Click here.

2.Add Ajax Control Toolkit ScriptManager in your master page.Open the Master page in SharePoint Designer.

  •  First register the Ajax Control Toolkit namespace in the masterpage file by putting the following line at the top of the file     
                   <%@ Register Assembly="AjaxControlToolkit, Version=3.0.30930.28736,
                             Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"

                            Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %

  • Then remove the ScriptManager registration from the master page by removing the following line:


  <asp:ScriptManager id="ScriptManager" runat="server" EnablePageMethods="false"
 EnablePartialRendering="true" EnableScriptGlobalization="false" 
 EnableScriptLocalization="true"/>


  • Finally Add the following line in place of the above line to register Ajax Control Toolkit
      <ajaxToolkit:ToolkitScriptManager id="ScriptManager" runat="server" EnablePageMethods="false"
     EnablePartialRendering="true" EnableScriptGlobalization="false" EnableScriptLocalization="true"/>




3.Register Ajax Control Toolkit namespaces in SharePoint package Designer

                    First open the Package designer in Visual Studio (Package usually exists under Package folder in    Visual Studio). And then click the “Advanced” button in package designer window as shown in the image below. In that advanced tab you can add/edit assemblies to be registered safe as part of the deployment of the solution package. Click Add ==> “Add Existing Assembly”. The following image shows wizard to follow.

image

Figure 1: Package Designer’s Advance tab
In the “Add existing Assembly” window, add the following namespaces for Ajax Control Toolkit.


The following image shows the “Add Existing Assembly” window for AjaxControlToolkit dll.

image


Figure 2: Add/Edit Existing Assembly window
Now you can build and deploy the package and as a result of deployment, Ajax Control Toolkit namespaces will be registered as safe controls in web.config.

Adding Items to the Welcome Menu in SharePoint 2010


Adding a new menu item to the SharePoint welcome/user menu is fairly straight forward.

Thanks to Sohels blog for pointing me in the right direction.

First create a new empty SharePoint project in Visual Studio 2010, call it "MenuItemProject".



2011-08-30-AddingItems-01.jpg


Deploy as a farm solution and click finish.


2011-08-30-AddingItems-02.jpg

Add a feature to the project. In the solutions explorer box, right click on the feature node and add feature.


2011-08-30-AddingItems-03.jpg

Also in the solution explorer, right click the top menuItemProject node and add > new item.


2011-08-30-AddingItems-04.jpg

Add an empty Element called "MenuAdditionElement".


2011-08-30-AddingItems-05.jpg

Once added, open the menuAdditionElement > Elements.xml file.


2011-08-30-AddingItems-06.jpg
Replace the Elements.xml code with the following:


<?xml version="1.0" encoding="utf-8"?>
 <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
   <CustomAction
   Id="myCustomAction"
   GroupId="PersonalActions"
   Location="Microsoft.SharePoint.StandardMenu"
   Sequence="1000"
   Title="Google"
   Description="Search away">
     <UrlAction Url="http://www.google.com"/>
   </CustomAction>
 </Elements>

Save the Elements.xml file and then in the solutions explorer double click on the feature1.feature node.


2011-08-30-AddingItems-07.jpg

Ensure the MenuAddition Element is included in the items in the feature.


2011-08-30-AddingItems-08.jpg


Deploy the solution to your SharePoint server.

Once deployed, refresh your site home page and the new menu item should be visible.






Wednesday, 7 November 2012

How to anonymous users access to comment on a SharePoint 2010 blog

First step from the site actions drop down choose view all site content on the blogsite

Click on the comments list 

 And choose list from the ribbon and goto the List permissions as shown below

 You will then need to stop inheriting permissions for this list,
 Once you have broken inheritance your view on the ribbon will change as illustrated below you will need to click on anonymous access
Once clicked you will be presented with the dialogue box below you will have to change the settings to allow Add Items – Add items to lists this will enable your readers to post comments on your new shiny SharePoint Blog.


KendoUI Chart using in AngularJS with Dynamic data

Here i'm going to do the KendoUI Chart using AngularJS  and getting dynamic data from angular services. First need to down-lode the r...