Hi,
I have a long databound ListGrid with paging.
There is a column for which I would like to show summary which is a dynamic value but not coming from any other DataSource.
Method getGridSummary is called only if all records are loaded, so I can't show that value before.
Here is an example. Summary of column area is shown only after you scroll to the bottom despite result of getGridSummary is not related to those records.
What is the suggested way to show number 7 from the beginning?
Best regards,
Janusz
I have a long databound ListGrid with paging.
There is a column for which I would like to show summary which is a dynamic value but not coming from any other DataSource.
Method getGridSummary is called only if all records are loaded, so I can't show that value before.
Here is an example. Summary of column area is shown only after you scroll to the bottom despite result of getGridSummary is not related to those records.
What is the suggested way to show number 7 from the beginning?
Code:
isc.ListGrid.create({ ID: "countryList", width:500, height:224, alternateRecordStyles:true, dataSource: worldDS, // display a subset of fields from the datasource showGridSummary: true, fields:[ {name:"countryCode"}, {name:"countryName"}, {name:"capital"}, {name:"continent"}, {name: "area", showGridSummary: true, getGridSummary: function() { return 7; } } ], sortField: 1, // sort by countryName dataPageSize: 50, autoFetchData: true }) isc.IButton.create({ left:0, top:240, width:150, title:"Filter Country: united", click:"countryList.filterData({countryName:'United'})" }) isc.IButton.create({ left:170, top:240, width:150, title:"Filter Capital: port", click:"countryList.filterData({capital:'port'})" }) isc.IButton.create({ left:340, top:240, width:150, title:"Clear filter", click:"countryList.clearCriteria()" })
Janusz
Comment