Saturday, December 29, 2012

SHAREPOINT 2013 – USING “JS LINK”


SharePoint 2013 has a lot new features and functionalities that it can do OOB.
One of these new functionalities is the "JS Link" web part property. With this property you are able to control the rendering of the web part.

This will mostly be used in combination with List/Data View Web Part. So, no more server side XSLT rendering (XSL Link), just client side JavaScript (JS Link).
There is the link to MSDN

Monday, December 17, 2012

Cross Site Content - it's coming in SharePoint 2013

As a lot of programmers who had a problem with cross-site content:how to show data from another site collection,another web application or another farm. All of us can search the internet and find solutions (3rd party, code implementation, etc...). In SharePoint 2013 this problem will be resolved by Cross-Site Publishing. On the official blog of the Microsoft SharePoint Product Group says that the new XSP aggregates a data by the search-based publishing model and a content can be shared across site collections, web apps, and farms. The new concept which introduced in SharePoint 2013 allows to publish lists, libraries, search catalog or variation data. More information is here.

Wednesday, December 12, 2012

Error occurred in deployment step ‘Recycle IIS Application Pool’: The communication object, System.ServiceModel.InstanceContext, cannot be used for communication because it has been Aborted.

The Problem :

"Error occurred in deployment step ‘Recycle IIS Application Pool: The communication object, System.ServiceModel.InstanceContext, cannot be used for communication because it has been Aborted."

The Solution:

Restart  Visual Studio 2010 and the problem should be resolved.

Wednesday, October 31, 2012

Adding a footer to SharePoint v4 MasterPage

I have a simple customized v4 Master Page.
I tried to use "footer" tag to make my footer at bottom of the page.
This is the solution:

This is Contoso Site - Copyright© 2012 Contoso - All Rights Reserved.

Sunday, September 23, 2012

Select custom ribbon tab - jQuery

    I created custom ribbon tab and a button on a page. When  a user press the button on the page, I needed to focus him to the custom ribbon tab. Of course, I used 
_ribbonStartInit("Ribbon.CustomTab", false, null);

but the problem is, after a user changes it to another tab, i.e. "Read" or "Browse" the second pressing doesn't work. Therefore, the solution was - adding SelectRibbonTab() function:

$('img.CustomTabButtonClass').bind('click', function() { 
    
  if (typeof(_ribbonStartInit) == "function")
   {
     try 
     {
       _ribbonStartInit("Ribbon.CustomTab", false, null);
     }
     catch(e)
       {
                  
        }
     SelectRibbonTab("Ribbon.CustomTab", true);
    }
    });

Tuesday, September 11, 2012

CSS: Cursor hand not working in chrome, firefox

The problem is  - cursor "hand" is not a supported style in browsers other than IE.
Instead of it need to use :
cursor: "pointer"

The vertical scrolling bar doesn't work in Chrome browser

Like most of us, I faced this problem when scroll bar doesn't work in Chrome.
After googling, the solution was a jQuery script which I inserted to the master page: