Saturday, 16 March 2013

kedno Grid Checkbox Column on Data field value

Kendo grid checkbox Column Dynamic checked on Bind:

columns: [
    {
        width: 80,
        template: "<input type='checkbox' class='visible' #= Active == '1' ? checked='checked' : '' # />",
        headerTemplate: 'Visible',
        attributes: {
            "class": "myClass",
            style: "text-align: Center"
        },
        headerAttributes: {
            "class": "myHeader",
            style: "text-align: Center"
        }
    }
]

Here we are applying checked or unchecked on Active field value.

No comments:

Post a Comment