Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
Grid - Rounding Large numbers
posted

When I provide a very large number to the IGGrid the grid appears to round off the number, and I cannot figure out how to prevent the rounding error. Example:

NPI: 999999999999999999

<table id="enterprise-provider-grid" data-bind="igGrid_nowrap: {
dataSource: providerList,
primaryKey: 'ProviderId',
width: '100%',
autoAdjustHeight: true,
autoGenerateColumns: false,
autoCommit: true,
features: [
{ name: 'Updating', editMode: 'none', enableAddRow: false, enableDeleteRow: false },
{ name: 'Sorting' },
{ name: 'Resizing', deferredResizing: true },
{ name: 'Paging', pageSize: 10, showPageSizeDropDown: false },
{ name: 'Selection', mode: 'row', rowSelectionChanged: setSelectedProviderId }
],
columns: [
{ headerText: 'ProviderId', key: 'ProviderId', dataType: 'number', hidden: true },
{ headerText: 'Name', key: 'Name', dataType: 'string' },
{ headerText: 'Tax ID', key: 'TaxId', dataType: 'string' },
{ headerText: 'NPI', key: 'Npi', dataType: 'number' },
{ headerText: 'Address', key: 'Address1', dataType: 'string' },
{ headerText: 'City', key: 'City', dataType: 'string' },
{ headerText: 'State', key: 'State', dataType: 'string' },
{ headerText: 'Zip Code', key: 'ZipCode', dataType: 'string' },
{ headerText: 'Status', key: 'IsActive', dataType: 'bool', formatter: convertStatus }
]}">
</table>

Displays:

<td role="gridcell" aria-readonly="false" aria-describedby="enterprise-provider-grid_Npi" tabindex="0" class="ui-iggrid-selectedcell ui-state-active">1000000000000000000</td>

Leave it to QA to find this, and then have the gall to write a defect for it.