My problem is how I can get the dataItem(row) where a cell was updated.
The column is a dropdown menu.
It seems dataBind is not functioning well.
I am using kendo grid and angularjs in this project.
Here is a sample demo.
Try using change event of grid dataSource there you can get the current modified dataItem with updated data
change:function(event) {
}
In the above code event will be having the updated dataItem
Related
I am working on Angular UI grid and I am trying to change the cell template property on button click but it is not affecting the UI grid.
Here is the punker and when I click on toggleDisplay name it is not getting changed.
check link:-
plnkr.co/edit/Q0WcJC37bSGF7Huet39Q?p=preview
I have an Ext JS 5.0.1 application that I am working on. I have a simple window with a grid and a form. I have the grid bound to my store and when a row is selected, all the textfields in the form bind, but I also have a combobox with its own store. When I select the grid row, I could not get the combobox to bind. I finally figured that out, but now if you change the combobox on the form the grid column just shows object.object. I have created a fiddle if anybody can help me out a little with this problem. Obviously I am trying to use the MVVM but also I would like for it to work in Architect if possible.
Fiddle
Bind value, not selection:
value: '{allPeople.selection.gender}'
Working example: https://fiddle.sencha.com/#fiddle/obm
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 am using AngularJS - 1.0.6 version. I have created sample application where I want data to be populated in the textbox when user selects row in a grid. I have a directive which will render textbox and bind data with ng-model property. The model which binds the data with ng-model is dynamic. for e.g. -
input.attr('ng-model', 'model["' + d.id.toLowerCase() + '"]');
I need to use Angular.copy method to copy selected Items data into another model object.
$scope.model = angular.copy($scope.selectedItems);
I have used the same model to bind Textbox and Label. The selected data is shown in Label but not in Textbox. Here is a plunkr link with sample -
http://plnkr.co/edit/948JfxAF8lbyq1xa3Fyu?p=preview
Can anyone help me to find the solution for it?
Thanks in advance!!!
I updated your plunker with a working example. You are going to have to pass in the index of the selected item to your dynamic input control. Plunker
input.attr('ng-model', 'model[0].' + d.id.toLowerCase());