About Webix list has error when return "total_count" from Server-side Response

edited November 2018 in Technical questions

TypeError: undefined is not an object (evaluating 't.id')

{
    view: "list",
    select: true,
    multiselect: true,
    datafetch: 5,
    navigation: true,
    url: "***url***"
}

return json

{
  "total_count": 21,
  "data": 
  [
    {
      "id": 19,
      "name": "issue",
      "type": "Issues",
      "reporter_id": 11,
      "reporter_name": "Chirapon",
      "status": "OPEN"
    },
    {
      "id": 20,
      "name": "add transient",
      "type": "Issues",
      "reporter_id": 11,
      "reporter_name": "Chirapon",
      "status": "OPEN"
    },
    {
      "id": 16,
      "name": "assign me",
      "type": "Work Order",
      "reporter_id": 11,
      "reporter_name": "Chirapon",
      "status": "OPEN"
    },
    {
      "id": 21,
      "name": "test",
      "type": "Work Order",
      "reporter_id": 11,
      "reporter_name": "Chirapon",
      "status": "OPEN"
    },
    {
      "id": 10,
      "name": "noti",
      "type": "Work Order",
      "reporter_id": 11,
      "reporter_name": "Chirapon",
      "status": "OPEN"
    }
  ],
  "pos": 0
}

and how to make auto load when scrolling to bottom like datable

Tagged:

Comments

  • Hello,

    For ui.list, dynamic loading is an additional feature which is disabled in default settings. To enable it, please set property dynamic to true, as mentioned in the related docs.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion