Beyaz.Net İpucu

Kendo da grid hucrelerinde herhangi birinin secilmesiyle olusturulacak event

#Kendo da herhangi bir hucreye basildiginda bir even olusturabilirsiniz.

        //herhangi bir hucreye basildiginda onChange fonksiyonunu calistir
        change: onChange,
        //hucre secimini ozellestiriyoruz. Yani her hucre bagimsiz olarak secilebiliyor
        selectable: "multiple cell",
        height: 670,
        filterable: true,
        groupable: true,
        sortable: true,
        resizable: true,
        columnMenu: true,
        pageable: { input: true, numeric: false },
        columns:[    {field:"webfilter_sip",    title:"Kaynak IP",        width: 70,    attributes:{style:"text-align:center;"}    },
                    {field:"webfilter_hostname",title:"Hedef Sunucu",width: 70,    attributes:{style:"text-align:left;"}    },
                    {field:"webfilter_url",    title:"Url",            width: 140,    attributes:{style:"text-align:left;"}    },
                    {field:"webfilter_msg",    title:"Mesaj",            width: 140,    attributes:{style:"text-align:left;"}    },
                    {field:"webfilter_status",title:"Durum",        width: 50,    attributes:{style:"text-align:left;"}    },
                    {field:"webfilter_date",title:"Tarih",            width: 40,    attributes:{style:"text-align:center;"},format: "{0:MM/dd/yyyy}"},
                    {field:"webfilter_time",title:"Saat",            width: 40,    attributes:{style:"text-align:center;"}    }
                ]
    });

    function onChange(arg) {
        var selected = $.map(this.select(), function(item) {
            return $(item).text();
        });
        alert("Sectiginiz hucrenin icerigi "+selectedt+" dir");
    }

Kategorideki Güncel Makaleler