farzinmonsef / WBRS

0 stars 0 forks source link

Kendo Grid Toolbar #9

Open farzinmonsef opened 6 years ago

farzinmonsef commented 6 years ago

Kendo Grid Toolbar

farzinmonsef commented 6 years ago

Add Custom Item to TOOLBAR and preserve NEW RECORD

create custom toolbar.txt

farzinmonsef commented 6 years ago

Tooltip enable/disable

var toolTip = $('#grid').kendoTooltip({ filter: ".tooltip", beforeShow: function (e) { if ($(e.target).data("name") === null) { // don't show the tooltip if the name attribute contains null e.preventDefault(); } }, content: function (e) { var row = $(e.target).closest("tr"); var dataItem = grid.dataItem(row);

    return "<div>Hi, this is a tool tip for id " + dataItem.Id + "! </div>";
}

}).data("kendoTooltip");