0
votes

I have a Kendo grid that has a selectbox on each row.

When I perform an update action on a row, in the database the data for the row is updated and the data for the selectbox is updated. Then I run a dataSource.read() on the grid to refresh the screen. However, even though the row refreshes, the data in the selectbox does not.

So the question is, how do I tell Kendo grid to refresh the data in the selectbox?

1

1 Answers

0
votes

you can use dataSource.sync(); for manually refresh the dropdownlist.

var dataSource=new kendo.data.DataSource({
// Datasource Code with Parameter
});
var grid = JQuery("#grid").kendoGrid({
dataSource:dataSource,
});

jQuery('#changeevent').change(function()
     {
             dataSource.read({
                parametername:jQuery("#valueoffeild").val()
             });

             var grid = jQuery("#grid").data("kendoGrid")
         grid.refresh();
     });