asp.net mvc - Kendo Grid , show command buttons only when adding a new record -
i using kendo grid display data. it's working command buttons (update/cancel or edit/delete).
issue : need show command buttons (update/cancel) when adding new record. need hide buttons (edit/delete) when loading , re-loading grid.
thanks, john
you can achieve hiding them in databound
event:
$("#grid").kendogrid({ ... databound: function(e){ e.sender.tbody.find('.k-grid-edit,.k-grid-delete').hide() } });
mvc:
@html.kendo().grid<..>() ... .events(e => e.databound("function(e){ e.sender.tbody.find('.k-grid-edit,.k-grid-delete').hide()"))
Comments
Post a Comment