Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Regular Contributor
Posts: 51
Registered: ‎04-24-2013
My Device: Z10
My Carrier: Telkomsel

Get Signal When ScrollView To The Top

I have scrollview with two listview inside:

ScrollView{
  //when scroll to the top
  //in would like to to refreh or reload datamodel in listview

  Container{
    Container{
      Listview{
       id: "firstList"
      }
    }
    
    Container{
      Listview{
       id: "secondList"
      }
    }

  }

}

 There is a way to implement pull to refresh like in single listveiw with leading visual like this:

leadingVisual: PullToRefresh {
     onRefreshTriggered: {
       firstListDM.clear();
       firstListDS.load();

       secondListDM.clear();
       secondListDS.load();
   }
}

 I call PullToRefresh.qml to view some image and text.

is there a way to implement that method?