Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You have to specify the Read action on the DataSource and add the RequestEnd event. You can place your DataSource read method inside this event. The event type parameter on the RequestEnd event such as "update","create","destroy" can then be used to determine which operation is complete and reload the data on the grid.</p> <pre><code>@(Html.Kendo().Grid&lt;Kendo.Mvc.Examples.Models.Discount&gt;() .Name("discountgrid") .Columns(c=&gt; { c.Bound(d =&gt; d.Id); c.Bound(d =&gt; d.Category); c.Bound(d =&gt; d.Percentage); c.Bound(d =&gt; d.Merchandise); c.Command(cm =&gt; { cm.Edit(); cm.Destroy(); }); }) .Pageable() .ToolBar(toolbar =&gt; toolbar.Create()) .Editable(editable =&gt; editable.Mode(GridEditMode.InCell)) .DataSource(dataSource =&gt; dataSource .Ajax() .PageSize(3) .ServerOperation(false) .Events(e =&gt; { e.RequestEnd("onRequestEnd"); })//onRequestEnd is the javascript fxn .Model(model =&gt; model.Id(d =&gt; d.Id)) .Read(read =&gt; read.Action("EditingInline_Read","Grid")) .Create(update =&gt; update.Action("EditingInline_Create", "Grid")) .Update(update =&gt; update.Action("EditingInline_Update", "Grid")) .Destroy(update =&gt; update.Action("EditingInline_Destroy", "Grid")) )) &lt;script type="text/javascript"&gt; function onRequestEnd(e) { if (e.type === "create" || e.type === "update" || e.type === "destroy") { e.sender.read(); } } &lt;/script&gt; </code></pre> <p>If you need further information, please read this <a href="http://www.kendoui.com/forums/kendo-ui-web/grid/kendo-mvc-grid---refresh-after-ajax-row-operation.aspx" rel="nofollow">link</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload