Skip to content

Instantly share code, notes, and snippets.

View jbristowe's full-sized avatar
👨‍💻
"It's complicated."

John Bristowe jbristowe

👨‍💻
"It's complicated."
View GitHub Profile
using System;
using EQATEC.Analytics.Monitor;
sealed partial class App : Application
{
public static IAnalyticsMonitor Monitor;
public App()
{
this.Suspending += OnSuspending;
@jbristowe
jbristowe / Get-AllUsers
Last active December 21, 2015 22:19
PowerShell script for getting all users from a particular Sitefinity site.
function Get-AllUsers {
param (
[string] $siteUrl = "",
[string] $username = "",
[string] $password = ""
)
if ($siteUrl -eq "")
{
$siteUrl = Read-Host "Site URL";
@jbristowe
jbristowe / html5-forms-support.html
Created July 6, 2012 03:20
HTML5 Forms Support in Kendo UI Mobile
<div id="..." data-role="view" data-title="...">
<ul data-role="listview" data-style="inset">
<li>
<!-- search -->
<input type="search" value="search" />
Search:
</li>
<li>
<!-- url -->
<input type="url" value="http://www.kendoui.com" />
.burndown-wrap {
height: 50px;
width: 100px;
...
}
@jbristowe
jbristowe / Calendar HTML Helper (ASPX)
Created June 15, 2012 04:40
HTML Helper Basics of Kendo UI for ASP.NET MVC Beta
<%: Html.Kendo().Calendar()
.Name("calendar")
%>
@jbristowe
jbristowe / ActionSheet-Definition.html
Created May 24, 2012 01:36
ActionSheet in Kendo UI Mobile
<ul id="actions" data-role="actionsheet">
<li class="km-actionsheet-title">Monday's meeting</li>
<li><a href="#" data-action="reply>Reply</a></li>
<li><a href="#" data-action="replyAll>Reply All</a></li>
<li><a href="#" data-action="archive>Archive</a></li>
</ul>
@jbristowe
jbristowe / ListView-Links-with-ActionSheet.html
Created May 23, 2012 02:05
Simple ActionSheet for TeamThing
@jbristowe
jbristowe / gist:2373597
Created April 13, 2012 04:09
ListView Change Event
$("#listView").kendoListView({
change: function(e) {
var data = dataSource.view(),
selected = $.map(this.select(), function(item) {
return data[$(item).index()].ProductName;
});
// index selected or read item information through data
}
});
@jbristowe
jbristowe / gist:2373579
Created April 13, 2012 04:02
Selectable ListView
$("#listView").kendoListView({
dataSource: dataSource,
pageable: true,
selectable: "multiple",
template: kendo.template($("#template").html())
});​
@jbristowe
jbristowe / gist:2373527
Created April 13, 2012 03:48
ListView Event Handling for User Interactions
var listView = $("#listView").kendoListView({
dataSource: dataSource,
template: kendo.template($("#template").html()),
editTemplate: kendo.template($("#editTemplate").html())
}).delegate(".k-edit-button", "click", function(e) {
listView.edit($(this).closest(".product-view"));
e.preventDefault();
}).delegate(".k-delete-button", "click", function(e) {
listView.remove($(this).closest(".product-view"));
e.preventDefault();