I have a CustomerGrid and a ProjectGrid and in both there is a column ValidUntil.
If I change this column in the CustomerGrid, I want to update the same column in the ProjectGrid.
Is that possible?
Both Grids are bound with DataTables.
Assuming you are using the OnNeedDataSource event for binding, you should just be able to call the Rebind method for the other grid.
//after updating the database from CustomerGrid data
ProjectGrid.Rebind();
Related
I have a Kendo Grid which I have bound a datasource in AngularJS. It has 10 rows.
In the MVC controller that is called I do some calculations and refetch the new datasource associated with that Grid and 5 of the lines no longer need to be on the grid.
The issue is that the rows are deleted from my model and database but I need to close my screen and come back to the Kendo Grid to see the change.
Is there a way I can make the grid update with that new data , so of like an Autorefresh ?
Thanks
yep all sorted. using grid.datasource.read()
I am in the process of altering an existing GridX table to add a new column which contains a drop down, the contents of which will be different for each row.
I have added the dropdown as a combobox by setting the cell's structure as
widgetsInCell: true,
Which will make the combobox's cell a decorator.
My issue now is that the update function operates by getting the gridx's and setting a new store.That works for text data but I can't find a way of creating a store which will populate the combobox.
Do I need to integrate somehow with the cell's setCellValue hook?
Thanks
You can use dijit/form/FilteringSelect
dojo FilteringSelect
If all your rows data from same store, use query to filtering data.(e.g. query: {state: /.*/})
Otherwise use "dojo/store/JsonRest" get data from server.
I have a kendo grid in which I am using the roweditor function to allow user to change values of networks listed as network1, network2, network3 lets call it as gridNetwork.
I have a combobox on the same page having networks listed same as network1, network2, network3 what was there in grid. The user can select values from this combobox let us call it as comboNetwork.
Based on the selection made in the comboNetwork, the value of the selected row(s) network should also change in gridNetwork.
Any suggestions?
I have created a jsfiddle,give a try:
http://jsfiddle.net/Sowjanya51/a2agwrf5/2/
What you want is on-change function bound to your comboBox that will update your underlying data model that you have bound to your grid.
In that function, update the model, the refresh the grid's datasource that the model is populating.
I am using Xtragrid control and BindingList as data source, and CustomRowFilter event of gridView control. It works fine when I call BindingList.ResetBindings, but it resets the current selection.
Is there a way to force new filter (through CustomRowFilter event handler) without calling BindingList.ResetBindings?
Use the RefreshDataSource method to update data displayed within the grid control's View as:
//Refresh the grid control
gridControl1.RefreshDataSource();
I suggest you to go through the below reference links:
Refreshing the GridControl
GridControl.RefreshDataSource
I found solution myself:
xtraGrid.RefreshDataSource()
I have a silverlight DataGrid, by default on page load the all the cells of the datagrid should be Readonly. I have 2 problem , can any one help me?
1.On Click on the RowHeader the current row should be editable
2. On click of the columnHearder current column of all row should be editable
This might not solve your entire problem but it should partially address it.
This is to make a column read-only in a datagrid
DataGrid.Columns[7].IsReadOnly = true;
Obviously the property can be changed from events but the data grid does not have row/column headers event handlers. Custom controls seem the way to go without introducing any new gui elements like buttons and changing the feel of the application.