Skip to content

Instantly share code, notes, and snippets.

//Pass "IE=9", "IE=10" etc.
function DetectIE11AndRenderUACompat(mode)
{
var rv = -1;
if (navigator.appName == 'Microsoft Internet Explorer') {
var ua = navigator.userAgent;
var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
if (re.exec(ua) != null)
rv = parseFloat(RegExp.$1);
}
if (window.matchMedia("screen and (-webkit-min-device-pixel-ratio : 1.5), only screen and (min-device-pixel-ratio : 1.5)").matches) {
} else {
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Sitefinity;
using Telerik.Sitefinity.Model;
using Telerik.Sitefinity.DynamicModules;
using Telerik.Sitefinity.Data.Linq.Dynamic;
function filterList(item) {
var filter = $(item).text().toLowerCase().trim();
var dataSource = new kendo.data.DataSource({
transport: {
read: {
url: "/finished-work/getall/",
dataType: "json",
cache: true
}
},
CountryElement country = Config.Get<LocationsConfig>().Countries.Values.FirstOrDefault(c => c.IsoCode == countryCode.ToUpper());
List<SelectListItem> statesList = new List<SelectListItem>();
if (country != null)
{
foreach (StateProvinceElement state in country.StatesProvinces)
{
statesList.Add(new SelectListItem()
{
Text = state.Name,
using System;
using System.Linq;
using System.Text.RegularExpressions;
using Telerik.Sitefinity.GenericContent.Model;
using Telerik.Sitefinity.Libraries.Model;
using Telerik.Sitefinity.Lifecycle;
namespace Aptera.Sitefinity.Decorators
{
public class DocumentsDecorator : LifecycleDecorator
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;
using System.Web.Routing;
using System.Web.Http;
using Telerik.Sitefinity.Abstractions;
using Telerik.Sitefinity.Data;
using Aptera.Sitefinity.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Http;
using System.Web.Http.OData;
using Telerik.Sitefinity.DynamicModules;
using Telerik.Sitefinity.Utilities.TypeConverters;
using Telerik.Sitefinity.Model;
using Telerik.Sitefinity.GenericContent.Model;
using System.Collections.Generic;
using Telerik.Sitefinity.Cloud.WindowsAzure;
using Telerik.Sitefinity.Configuration;
using Telerik.Sitefinity.Services;
namespace SitefinityWebApp
{
/// <summary>
/// Sitefinity's Windows Azure role entry point.
/// </summary>
using SitefinityWebApp.Custom;
using System;
using System.Linq;
using System.Web.Http;
using System.Web.Routing;
using Telerik.Sitefinity.Abstractions;
using Telerik.Sitefinity.Configuration;
using Telerik.Sitefinity.Data;
using System.Web.Http.OData.Builder;
using Aptera.Sitefinity.Model;