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

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -