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

Popular posts from this blog

Capture and play voice with Asterisk ARI -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -