This question is locked. New answers and comments are not allowed.
Hi,can help me resolve android loadOnDemandMode Manual, in my project i have a SegmentedBar View show different type(in:50 records,out:12 records) data, in listview set 10
records per page,and set loadmore tap text as 'loadmore' , i tap that and loaded the last record data,the tap text dismiss, when i tap SegmentedBar change to out tab ,just show 10 records,and yet not found 'loadmore', so have any way to show 'loadmore' and load more data ?
in my code init list view
if
(!
this
.listview) {
this
.listview = <RadListView>
this
.getPage().getViewById(
'listView'
);
}
if
(
this
.listview && isAndroid) {
this
.listview.loadOnDemandMode =
'Manual'
;
this
.listview.resumeUpdates(
true
);
}
else
{
this
.listview.loadOnDemandMode =
'Auto'
;
}
and when finish load data set in onLoadMoreItemsRequested
public onLoadMoreItemsRequested(args: ListViewEventData) {
console.log(
'onLoadMoreItemsRequested'
,
this
.totalPage);
if
(
this
.currentPage <
this
.totalPage) {
args.returnValue =
true
;
}
else
{
args.returnValue =
false
;
console.log(
'args.returnValue:'
+ args.returnValue);
}
}
so i found args.returnValue = false this code cause the tap 'loadmore' dismiss, but i don't know how to reappear 'loadmore'