Note that there are some explanatory texts on larger screens.

plurals
  1. POkendo grid can't show number record
    primarykey
    data
    text
    <p>""" Kendo UI Grid """</p> <p>My grid can't show number record and total page and next page </p> <p>grid footer show "No items to display"</p> <p>prev and next symbol &lt;&lt; &lt; 0 > >></p> <p>I put pageable or pagesize but why don't show T_T </p> <p>Please help me !!! </p> <pre><code> var dataSourceUser = new kendo.data.DataSource({ transport: { read: "adminUser.php?action=view", destroy: { url: function (options) { $.ajax( { type: 'POST', url: 'adminUser.php?action=delete', data: { UserID: options.UserID }, complete: function(e) { $("#gridUser").data("kendoGrid").dataSource.read(); } }); return; }, dataType : "json" }, create: { url: function (options) { $.ajax( { type: 'POST', url: 'adminUser.php?action=create', data: { Username: options.Username, Password: options.Password, PCUID: options.PCUID, adp_id: options.adp_id }, complete: function(e) { $("#gridUser").data("kendoGrid").dataSource.read(); } }); return; }, dataType : "json" }, update: { url: function (options) { $.ajax( { type: 'POST', url: 'adminUser.php?action=update', data: { UserID: options.UserID, Username: options.Username, Password: options.Password, PCUID: options.PCUID, adp_id: options.adp_id }, complete: function(e) { $("#gridUser").data("kendoGrid").dataSource.read(); } }); return; }, dataType : "json" }, parameterMap: function(options, operation) { if (operation !== "read") { return {models: kendo.stringify(options.models)}; } return options; } }, batch: false, pageSize: 15, schema: { data: "data", model: { id: "UserID", fields: { UserID: { editable: false, nullable: true }, Username: { validation: { required: true } }, Password: { validation: { required: true } }, PCUID: { validation: { required: true } }, adp_id: { validation: { required: true } } } } } }); $("#gridUser").kendoGrid({ dataSource: dataSourceUser, pageable: true, toolbar: ["create"], pageable: true, columns: [ { field:"UserID", title: "UserID", width: "100px" }, { field:"Username", title: "Username", width: "100px" }, { field:"Password", title: "Password", width: "200px" }, { field:"PCUID", title: "PCUID", width: "100px" }, { field:"adp_id", title: "adp_id", width: "200px" }, { command: ["edit", "destroy"], title: "&amp;nbsp;", width: "160px" }], editable: "popup" }); </code></pre> <p>adminUser.php</p> <pre><code>{"data":[{"UserID":"1","Username":"test1","Password":"1234","PCUID":"001","adp_id":"1"},{"UserID":"2","Username":"test2","Password":"1234","PCUID":"002","adp_id":"2"}]} </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload