<ejs-gantt
//...
:columns= "columns"
></ejs-gantt>
data: function() {
return {
//...
columns: [
//...
{ field: 'Custom2',width: 100,
edit: {
params: { value: 0,
focus: function(args){
var ganttobj = document.getElementById('GanttContainer').ej2_instances[0];
var index = ganttobj.selectedRowIndex;
if(ganttobj.flatData[index].Custom1){
this.min = ganttobj.flatData[index].Custom1
}
}
}
}, editType: 'numericedit' },
],
};
} |
S.No |
Query |
Syncfusion Comments | |
1
|
I have an issue with this validation. In start cell I have value 10. I inline edit the end cell value to 5 and press enter, the validation doesn't work. But when I click outside the cell, the validation works.
|
We can resolve this by setting the value of start cell to validation.min value in the focus event of NumericTextBox control as like below code example.
| |
2
|
when I leave empty value after editing I have NaN (instead of null). |
We suggest you to use validation required set to true. So that it prevents you from saving empty value.
|
return {
//...
columns: [
//...
{
field: 'Custom1', type:”number”},
},
],
}; |