First, let me clarify one thing: while my original post indicated that the issue appeared to stem from the number of records passed to the grid as a datasource, I later found that to be incorrect. The issue seems to come from the way an empty string is handled in a C2-formatted column.
When I say that search results are not displayed, I'm referring to the results returned from a server-side query. The results are returned in an array of JSON objects, each of which is properly formed. I can provide you entire code samples and videos, but I don't believe it's necessary. I can easily demonstrate here the problem I've found. If you refer to the original column structure I submitted, you will see that the last column, using the data field "DemandAmt" has a C2 format.
In some records, the database value for this field is null. This is serialized in the JSON object as an empty string. When an object for the grid has this structure, as shown below, the grid is empty. (Although as noted earlier, the pagination and total items are correct.) This occurs when any object in the array has an empty string for this field.
So when the following object appears within the array:
{ApprovalDate: "July, 12 2019 07:40:00",
- Attorney: "Lee Arter",
- CaseID: 17457,
- CaseManager: "Santiago Figueroa",
- CaseType: "Imaging Fresno",
- Client: " FRANCISCA AVILA",
- DemandAmt: "",
- IncidentDate: "",
- MLCaseIdentifier: "ML18457",
- Market: "California",
- Status: "Active-Pending Settlement",
- SubmissionDate: "July, 12 2019 07:40:00",
- TotalBilled: 405,
- TotalPaid: 195
- }
... the grid displays no records, even though other objects in the array have a numerical value for DemandAmt. The attached screenshot shows this behavior. You can see that the footer displays "5 items," while the main grid area shows "No records to display."
When the server-side code is modified to return a zero rather than a null for that field, the grid displays correctly. So clearly, the empty string in a column with C2 formatting causes a problem. This behavior occurs whether or not the column is typed as a number..
Interestingly, the problem does not occur with date formatting. Again, referring to the original column structure, you will see three columns typed as dates with a specified display format. In the object above. the IncidentDate field contains an empty string. Yet the grid displays correctly, simply ignoring the empty string.
Please confirm that you see the same behavior. It seems to me that the currency-formatted field should operate the same as the date field, ignoring empty strings.
Attachment:
Screen_Shot_20200527_at_9.14.49_AM.png_23b317e2.zip