Category Archives: Typescript

How to set value using jQuery on custom Editor Template of a Kendo Grid

If you neeed to update a field on a Custom Editor template of a Kendo grid using jQuery the only method I found that works is this:

var myvar = $("#myid");
myvar.trigger("change", { value: myvar.val() });


How To Create a Delegate in TypeScript

This is a snippet that can allow you to create a Delegate for the function GridDataBound

function createDelegate(instance: any, method: any): any {
    return function () {
        return method.apply(instance, arguments);

class ClassName {
    public DataBound$dlg: any;

    constructor() {
        this.GridDataBound$dlg = createDelegate(this, this.GridDataBound);

GridDataBound(e: any): void {