I am using the latest version of SmartClient and Visual builder. (sC_SNAPSHOT-2011-01-06)
I am in visual builder
I have created ReST datasource using JSON
I have created a listgrid
I want to see paging. So I have my script return this response
There are 11 records served to the grid but 151 in the dataset. I expect that when I scroll down it will make a request for more records.
I observe grid never requests any more records.
I expect that when the grid loads it will make a GET request with url parameters that have something to do with its default paging set up.
I observe that a GET request is made but no parameters are provided.
I have read the manual and tried every possible parameter during the last 6 hours before I simplifed to this scenario.
* Please explain why I do not have any paging.
I am in visual builder
I have created ReST datasource using JSON
I have created a listgrid
Code:
isc.DataSource.create({ ID:"dataSource0", dataFormat:"json", dataURL:"http://keyapt:8888/rest-api/datasource/filterable-phone-numbers1.cfm", fields:{ CONTACT_PHOTO_ID:{ name:"CONTACT_PHOTO_ID", type:"string" } }, recordXPath:"Response/data" }) isc.ListGrid.create({ ID:"ListGrid1", autoDraw:false, dataSource:"ref:dataSource0", autoFetchData:true }) isc.DataView.create({ ID:"DataView0", autoDraw:true, overflow:"hidden", members:[ ListGrid1 ], width:"100%", height:"100%" })
Code:
{"Response": { "status":0 ,"endRow":11 ,"startRow":1 ,"data":[ {"CONTACT_PHOTO_ID":948} 8 additional records removed for clarity. ,{"CONTACT_PHOTO_ID":933} ] , "totalRows":151 } }
I observe grid never requests any more records.
I expect that when the grid loads it will make a GET request with url parameters that have something to do with its default paging set up.
I observe that a GET request is made but no parameters are provided.
I have read the manual and tried every possible parameter during the last 6 hours before I simplifed to this scenario.
* Please explain why I do not have any paging.
Comment