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
105
How to bind JSON without igDataSource
posted

Hello,

now I would try the new IG jQuery tools, but I have a problem with the grid. I want to bind a JSON response string from a php service to the grid. But the grid does'nt show any data an add a column that I never defined in the code.

$(function () {
      $("#grid1").igGrid({
          columns: [
              { headerText: "ID", key: "id", dataType: "number" },
              { headerText: "Description", key: "description", dataType: "string" },
              { headerText: "Title", key: "title", dataType: "string" },
          ],
          width: '800px',
          dataSource: "json_server.php"
      });
  });

Is it possible to bind the return of "json_server.php" to dataSource?

Thanx

Markus

Parents Reply Children