Thursday, 28 June 2012

Hide the (Select or deselect)Checkbox in Web Part Title bar

Simply add the following style to the Master Page
  <style>
    .ms-WPHeaderTdSelection
    {
         display none;
     }
  </style> 

Tuesday, 26 June 2012

Infopath 2010 -When clicking Priview Button

So Error was

"InfoPath cannot open the selected form because of an error in the form's code. Policy settings prevent opening Internet forms with managed code. To fix this problem, contact your system administrator. "

When i tried to Click Priview button on the InfoPath2010 , i'm getting this above mentioned error. After that i changed the security setting of the form to fully trusted, then it worked for me.

Go to Form Options =>Security and Trust => Select Fully Trust radio button =>and then click ok button.

This Form Template Is Browser-Compatible, But It Cannot Be Browser-Enabled On The Selected Site.

I have an Infopath form which is published to a document library in a sharepoint site. I am using Infopath 2010 .When I try to publish the form, and when I check the box "Enable the form to be filled out by using a browser", I only have the option to publish the form as Administrator approved form template, the other options of publishing it in a document library or publishing it as a content type are grayed out. 


The error message is



This form template is browser-compatible, but it cannot be browser-enabled on the selected site. 


Troubleshooting Steps:
Go to SharePoint 
1. Central Administration Settings


-> Central administration
-> General Application settings
-> Click Configure InfoPath Forms Service
 (Check the following Check-boxes)
 a. “Allow users to browser-enable form templates”
 b.“Render form templates that are browser-enabled by users”


2. SharePoint Site Settings


-> Open your SharePoint site
-> click on Site Actions 
   -> Site Settings
 -> Select Site collection features under Site Collection Administration
 -Activate SharePoint Server Enterprise Site Collection features.

Picture library slide show webpart Alignment issues (sharepoint 2010)

The picture library webpart uses the css classes in corev4.css in sharepoint 2010. The web part uses “.ms-WPBody” css class for styling. I over wrote this class in my custom style sheet as “.ms-WPBody.
 So, I wrote my custom css using this class name as follows: 

.ms-WPBody.noindex{ font-size:8pt; font-family:"Segoe UI" !important; } .ms-WPBody.noindex table{ font-size:1em; width:100% !important; height:100% !important; } .ms-WPBody.noindex td{ font-size:10pt; font-family:"Segoe UI" !important; width:100% !important; height:200px !important; margin-left:auto !important;margin-right:auto !important; /* text-align:center !important;*/ } .ms-WPBody.noindex td div{ height:auto !important; width:100% !important; text-align:center !important; display:block !important;; } .ms-WPBody.noindex td div span{ width:100% !important; } .ms-WPBody.noindex td img{ height:100% !important; width:100% !important; } 


source code like that..

<table>
<tr>
<td>
<div>
<WebPartPages:PictureLibrarySlideshowWebPart>
</WebPartPages:PictureLibrarySlideshowWebPart>
</div>
</td>
</tr>
</table>

To view the Version History of doc uploaded


1. Under the Document uploaded part pls select the Edit Web Part, 

2. in webpart, under Library Tool select Library then select Library settings. 

3.then select Versioning settings under the General Settings there u get a page for select the type of versioning(major or minor), then u get press OK button on there..

Custom Validator with Page.Is valid Property


using this Property(Page.IsValid),resolve the when Custom Validator is return failed; page was redirect.So solve this code.

 if (!Page.IsValid)
            return;
 Redirect("http://google.com");

To enable Navigation in site settings.


To enable the navigation in(Look and Feel) Site Settings we have to do the following steps. its used for adding tab in menu for site navigation...


In HOME=> goto SiteAction then select SiteSettings, under that select Site Collection Administrators in Users And Permissions


1.  Activate the SharePoint Server Publishing Infrastructure  then  u can see the following items in Site Settings of Home.



Basically the follwing items looks like

BackUp and Restore the sharepoint site


Create a folder in your C drive called backup. Then give the path as C:\backup
This will save the backup file in c:\backup folder
You dont have to mention the \\ before C:
\\ is used if you are trying to save the backup in a shared location. Ex: \\sysname\foldername

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...