Skip to content

Instantly share code, notes, and snippets.

View pvanroos's full-sized avatar

Paul VanRoosendaal pvanroos

View GitHub Profile
using System.IO;
using System.Text;
using Microsoft.Azure.Cosmos;
using Newtonsoft.Json;
namespace Application1
{
public class CosmosJsonNetSerializer : CosmosSerializer
{
private static readonly Encoding DefaultEncoding = new UTF8Encoding(false, true);
@lohithgn
lohithgn / gridwithextbuttons
Created January 28, 2015 10:51
Kendo UI Grid with external buttons to export
<div id="grid"></div>
<br>
<button class="k-button k-primary" id="btnExcelExport">Export to Excel</button>
<button class="k-button k-primary" id="btnPdfExport">Export to PDF</button>
<script>
$("#btnExcelExport").kendoButton({
click:function(){
$("#grid").getKendoGrid().saveAsExcel();
}