paging grids

Certified Senior Developer

hello all,

I am using paging grid and also user can filter based on drop down. Drop down values are dynamically load from view(distinct dept names will be in dropdown if data is available for that id record).If there are records , grid is working fine(pageinfo 1,5). If there is no record for the particular Id then I am getting the below message. Please let me know if you have any thoughts.Thanks

“totalCount” must not be null or less than the number of items in any of the “data” arrays, but “totalCount” was 0 and the largest column data array had 1 items

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    I believe null check is not required, because when you use paging grid then if the data is not available or null then it shows emptyGridMessage (when your datasubset.data is empty or null or {}).

    There can be multiple root cause behind this. I suspect your query entity is returning empty double quotes "" when data is empty while querying the db. It will be easy to trace this out if you can share your code snippet as well as the datasubset value (when the data is empty).
Reply
  • 0
    Certified Lead Developer
    I believe null check is not required, because when you use paging grid then if the data is not available or null then it shows emptyGridMessage (when your datasubset.data is empty or null or {}).

    There can be multiple root cause behind this. I suspect your query entity is returning empty double quotes "" when data is empty while querying the db. It will be easy to trace this out if you can share your code snippet as well as the datasubset value (when the data is empty).
Children
No Data