Is there a way to refresh a single Kendo grid row without refreshing the whole datasource or using jQuery to set the value for each cell?
相关问题
- Foreign key column sorting
- Kendo UI bind drop down value from PopupEditor
- Kendo mvc grid InLine Edit Mode DateTimePicker Tem
- How to change color of row based on particular col
- Kendo UI for MVC Grid How do I hide the ID column
相关文章
- Kendo Ui Dropdownlist Set Visible via Javascript
- How to change view date dynamically (which is filt
- Kendo DropDownList Shows DataValueField Prior to D
- Kendo UI Datasource - Filter on releated data
- Kendo UI Grid Refesh on Dropdown Selection
- How to bind kendo mvc ui dropdownlist dynamically
- KendoUI integration into Durandal JS
- How to make a Pie Chart Aggregate the Data Source?
I found a way to update the grid dataSource and show in the grid without refreshing all the grid. For example you have a selected row and you want to change column "name" value.
data.set
will actually refresh the entire grid and send adatabound
event in some cases. This is very slow and unnecessary. It will also collapse any expanded detail templates which is not ideal.I would recommend you to use this function that I wrote to update a single row in a kendo grid.
Example:
How do you define the row that you want to update? I'm going to assume that is the row that you have selected, and the name of the column being updated is
symbol
.Remember that the content of the
DataSource
is anobservable
object, meaning that you can update it usingset
and the change should be reflected magically in thegrid
.