Discussions concerning ui-grid 4.0 development. See the tutorials: http://ui-grid.info/docs/#/tutorial
0%
mportuga on master
fix(core): update remove method… (compare)
I was breaking my head from last 3 hours, not able to get the solution. Can anyone help me out on this issue?
I am using Ui-grid and from code level I am adding new editable rows on clcik of add button. But I am able to add only 20 rows after that it is not allowing me to add editable rows.
I am using ui-grid and I am struck with one issue. As you can see I have two columns in below code, I want to use texteditor or dropdown as second column editor based on the value of first column in the same row.
Eg.
coloumn1 column 2
abc texteditor
pqr dropdown
Can anyone suggest how can I use this, I am using below grid definition.
............................................................................
$scope.prodInfoTypeGridOptions = {
enableRowSelection : true,
enableSelectAll : true,
multiSelect : true,
enableCellEditOnFocus: true,
selectionRowHeaderWidth : 30,
columnDefs: [{
name:'infoType',
displayName :'ProductInfo Types',
enableCellEdit: false
},
{
name : 'defaultValue',
displayName:'Value',
editType: 'dropdown',
enableCellEdit: true,
editableCellTemplate: 'ui-grid/dropdownEditor',
editDropdownOptionsArray:$scope.typeRowValueArray,
editDropdownIdLabel: 'value',
editDropdownValueLabel: 'value',
editDropdownOptionsFunction: function(rowEntity, colDef) {
var rowInfoType = rowEntity.infoType;
var colName = colDef.name;
if(colName == 'defaultValue'){
for(i=0; i<$scope.defProdInfoTypes.length; i++){
if(rowInfoType.toUpperCase() == $scope.defProdInfoTypes[i].type.toUpperCase())
{
return $scope.defProdInfoTypes[i].options;
}
}
}
}
}],
onRegisterApi: function (gridApi) {
$scope.gridApi = gridApi,
$interval( function() {
$scope.targetInfoGridapi.core.handleWindowResize();
}, 500, 10);
},
data:$scope.prodObject.productInfotypes
};
......................................................................................