I have used kendo grids and charts fine and refreshed them with the following example code:
$("#Product").data("kendoGrid").dataSource.read();
How do I refresh kendo grid when datasource is changed without redrawing the grid.
I think this gives you better answer
Kendo ui datasource refresh? like
$("#Product").data("kendoGrid").dataSource.read();
$("#Product").data("kendoGrid").refresh();
Related
I have a requirement in kendo grid, like
when I click some icons I need to change the format of data source(grid view | list view\ details view).
Like this sample I need to do in Kendo grid. I am searched lot in google but I am unable to get any sample for this requirement. Is anyone done this in your project by using kendo grid?
I have a scenario here, Consider there are two kendo ui grids(jquery), Grid1 and Grid2 both are of same schema. On adding data in the first grid ie Grid-1, should automatically reflect the grid-2. However the same data I am changing in the Grid-2 should not affect the Grid-1 unless I have made an explicit event to change the same. In my case it is working bi directionally not the way I want to be. I am using Kendo observable.
I am using Kendo observable object to bind the Kendo ui grid. When adding/editing the values in the data source it is reflecting in the grid as well as the observable array. When using load button and explicitly adding values to the Kendo observable is not reflecting in the grid.
Here is sample working code.
http://dojo.telerik.com/#bijum/ASoTu
Here is an example that works:
http://dojo.telerik.com/IVuko
I made the following changes:
bound the Grid to the personDataArray ObservableObject, and not to just a field of the ObservableObject
set schema.data to point to the data field of the personDataArray.
called dataSource.read() when setting new data to the personDataArray
I think the last step should not be needed, but not sure.
I am trying to get kendo tree in kendo grid.
I could able to achieve to get the data, but not the tree functionality.
below is the link for same
http://dojo.telerik.com/oDakE
can anyone help me why the expand and collapse is not working
have you tried kendoTreeList, it accepts a json sort of like a treeview but you assign a parent id to each node, and displays as a grid.
I have a Kendo Grid in which I want to add an event handler for row select. In the Telerik Grid, the code is
ClientEvents(events => events.OnRowSelect(""))
However, I can not find OnRowSelect in Events in Kendo. How to do it? Thanks.
I believe you still have to respond to the change event. See the Telerik help for the Grid event change:
http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#events-change