简体   繁体   中英

Kendo ui Grid inline edit , field with editorTemplate

Kendo ui Grid带编辑器模板的内联编辑字段如何获取按钮更新事件(创建或更新时),以便使用JavaScript强制刷新页面

Use the Events extension method of the Kendo grid...

.Events(events => events.Save("onSaveClicked").Cancel("onCancelClicked"))

And add javascript event handlers for corresponding events on the hosting or main page...

<script type="text/javascript">    
function onSaveClicked()
{
    alert("Save Clicked!!!");
}
function onCancelClicked()
{
    alert("Cancel Clicked...");
}
</script>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM