I have an igGrid that is generating the following error when populated. There is a single number field in the grid. I have other grids with many numbers in the grid but do not generate this error. I am not using the Updating feature. All number fields have format="double". How do I determine what is actually causing this error?
When dataMode is 'double', the maxDecimals option can accept numeric values between 0 and 15.
Hello Ray,
I am glad that you managed to resolve your issue.
Thank you for using Infragistics components.
Regards,
Monika Kirkova,
Infragistics
I appreciate your response and what you are saying makes complete sense. The problem was that the error message didn't help point me in the direction the Filtering feature. As stated the error message was:
"When dataMode is 'double', the maxDecimals option can accept numeric values between 0 and 15."
If the error had been more specific I would have been able to narrow down the issue easier.
After investigating this further, I determined that the reason behind this behavior is the fact that type double accepts 15 decimal digits of precision. This exception could be avoided if you use your format, or if maxDecimals and minDecimals options are set to the editorOptions of the features, which are used. After setting maxDecimals to 15 and minDecimals to 0 everything works as expected when the format of the column is double.
features: [{
name: "Filtering",
columnSettings: [{
columnKey: "Department",
editorType: "numeric",
editorOptions:{
dataMode: "double",
minDecimals: 0,
maxDecimals: 15
}
},]
}]
Please let me know if you need additional information regarding this matter.
Changing the format="###,###,###,###,###.##" provided a satisfactory work around, but this still appears to be an Infragistics problem when using "double".
After additional analysis, this seems to only occur with grid that have the Filtering feature active and format="double" for numeric fields.