Categories | Question details Back To List | ||
load 50,000 records in grid from json Hi, i would like to load 50000 records from my json but it doesnt work very well. Could you give my a hint to solve my problem? Here my Init: ... mygrid.setSkin("light"); mygrid.init(); mygrid.enableSmartRendering(true); myrid.load("record_list.php", 'json'); Here the content of the php: if(isset($_GET["posStart"])) $posStart = $_GET['posStart']; else $posStart = 0; if(isset($_GET["count"])) $count = $_GET['count']; else $count = 100; // initiates and loads the list from the db by the given LIMIT parameters $recordList = new recordList($posStart, $count); // write the JSON by the record-value, total_count and the start echo Json::encodeJson($galleryList->getList(), $galleryList->getTotalCount(), $posStart); Here the Result from Record_List.php: total_count =50000, posStart =0, data = {rows: [ { "id": "1", "data": ["1", "7Hub2oOXRC", " 7oliO0ffBcY2sSaS0m ", "24035"] } ]} (i've insert the total_count and posStart for testing and to be similar to the xml) The grid shows me only the first 100 results, so the sql-statement works. Have i forgotten something to make this grid load all my records? Thank you! Answer posted by Support on Jun 29, 2009 09:00 Please be sure that ext/dhtmlxgrid_json.js is included. Without it grid can process only basic json operation, and will not support dyn. smart rendering from json dataset. The response data looks correctly and must not cause any problems on its own. Same for client-side code snippet. Answer posted by Stephen Neander on Jul 05, 2009 00:52 Is ext/dhtmlxgrid_json.js only available in the professional version? I can't see it in the standard version. Answer posted by dhxSupport on Jul 06, 2009 00:40 dhtmlxgrid_json.js extension is available in PRO version only. |