Coder Social home page Coder Social logo

How to pass selected id which is not shown to the user but used for other purposes(to save to db) behind the scenes about xfx.controls HOT 3 CLOSED

xamformsextended avatar xamformsextended commented on July 20, 2024
How to pass selected id which is not shown to the user but used for other purposes(to save to db) behind the scenes

from xfx.controls.

Comments (3)

ChaseFlorell avatar ChaseFlorell commented on July 20, 2024

We use ObservableCollection and subscribe to the ItemSelected event.

The ItemSelected event contains a SelectedItemChangedEventArgs parameter and you can access the result with

e.SelectedItem.ToString();

from xfx.controls.

avinash-ramireddy avatar avinash-ramireddy commented on July 20, 2024

I will try when I am free this and in the mean time can u provide sample or just add things to my code mentioned above(helps to understand and do it quickly)

from xfx.controls.

ChaseFlorell avatar ChaseFlorell commented on July 20, 2024

@avinashramireddy-rapidd I've just made a commit to demonstrate how it's done.

You can either use the event ItemSelected and capture it in your codebehind, or you can bind a property to the SelectedItem property, and view it from your ViewModel.

332ca2a

from xfx.controls.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.