Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8608907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:44:16+00:00 2026-06-12T03:44:16+00:00

Here is the situation: I am allowing user to pick items from a listview

  • 0

Here is the situation:

I am allowing user to pick items from a listview and add them as favorite.
When the list loads for first time I preselect the items that were added previously as favorites.
To save favorites I can simply get the selection list and overwrite the favorites, that is if anything deselected will be taken care automatically.

BUT:

On top of the listview there is a search box which refreshes the same listview to show search results for every new search keyword. So user can search and select/deselect items. This situation does not allow me to simply take the selection list and overwrite the favorites.

I need to explicitly know which item user tapped on (note my listview’s tapBehavior is set to toggleSelect) to select/deselect it and manually add/remove it from favorite list.

How can I get the information about the item that triggered the onselectionchanged event of the listview and also the current state of that item (i.e. selected/deselected).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T03:44:17+00:00Added an answer on June 12, 2026 at 3:44 am

    You could add handler for selectionchanging event and compare event.detail.newSelection with current selection of listview control. Missing/new items will be required elements.

    I’m not sure that this solution is most optimal but at least it works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a situation here i am taking input from user using scanf can
I have an situation here that looks very like a SELECT N+1 from the
I have a simple situation here. lets face html code first => <form name=geoKey
I got a little confusing situation here when I use the Context from django.template.
Here is the situation. I have received a WSDL (and included XSD) from someone
I have a situation here there are two models User,Posts Now I want to
I have an interesting situation here this time. This more of a conceptual question,
Here my situation : The user click on a LinkButton, and the page does
I'm in a somehow tough situation here. I need to load data from multiple
I have a situation here. May I know how to get json from place

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.