Pages

Showing posts with label Javascript. Show all posts
Showing posts with label Javascript. Show all posts

Friday, January 11, 2019

Sharepoint Online - Quick Edit supports JS Link and Client Side Rendering

The sharepoint online list quick edit (Data Sheet View) would support Client Side Rendering Code (CSR).

when I renamed a file to become “kar.txt” it turns the background green &  text white colour tag.   This could be leveraged to give end users real-time feedback on the values entered.   Unlike a JQuery page load event which only triggers once, this triggers per row as values are changed.

 Upload JS file to Site Asset library and Provide in the following

~site/SiteAssets/CSSQEdit.js




Thursday, May 26, 2016

ASP.Net Server Side Code for redirect to another Page


You can use in the below code in your code block

string spurl = SPContext.Current.Site.Url;              
string scriptText = "alert('Record has Successfully SavedDraft.'); window.location='" + spurl + "/Test/default.aspx'";
System.Web.UI.ScriptManager.RegisterClientScriptBlock(panel4, Page.GetType(), "alertMessage", scriptText, true);


Once user click on the Button then it will redirect to other page.

Wednesday, September 16, 2015

Enable cross domain sharepoint profile picture in sharepoint 2013

I just enabled custom claim provider Authentication in the 80 web application, After that I just enabled My Site with custom claim provider Authentication .

When I open my 80 website and click on the my site link then My Profile picture is not showing in the first time.  So I just enabled in the below solution. It is working fine.


Run the code in the PowerShell skills. Basically all you need to do is to set the CrossDomainPhotosEnabled property on the SPWebApplication object to true, like this:
 
 
 
 
asnp Microsoft.SharePoint.PowerShell
$wa = Get-SPWebApplication http://spsxyz.com
$wa.CrossDomainPhotosEnabled = $true
$wa.Update()