Questions tagged [selectedindex]

In HTML DOM, the selectedIndex property sets or returns the index of the selected option in a dropdown list. The index starts at 0.

354 questions
49
votes
12 answers

Set initially selected item index/id in BottomNavigationView

I have implemented BottomNavigationView and have no idea how to set selection index or MenuItem id (in my case, middle item should be selected by default). I'm afraid there's no such possibility for now as far as it's too raw yet, but anyways any…
47
votes
7 answers

How to set selectedIndex of select element using display text?

How to set selectedIndex of select element using display text as reference? Example: HTML element with 3 options and a

element. In the

element I want to print index of the currently selected item in this is in my…

ErikBrandsma
  • 1,661
  • 2
  • 20
  • 46
6
votes
2 answers

Items on ListBox show up as a class name

The problem is as follows: I connected the ListBox with a list of elements of some custom class (List persons = new List()) using DataSource property. Of course ValueMember and DisplayMember are both assigned to appropriate…
peterp
  • 171
  • 1
  • 1
  • 9
5
votes
2 answers

tab bar did select delegate methods give the previously selected tab index in ios, swift 3

I'm trying to detect which tab selected by the user, realtime. as an example, if user selecte 0 th index, at the same time I want to get that user has selected the zeroth index tab. so for that , I used tabbarcontroller delegate method like…
bill
  • 854
  • 3
  • 17
  • 41
5
votes
2 answers

Cannot set SelectedIndex="0" in Xaml to ListView (Windows Store App)

I have 2 ListViews and a TextBlock. The first ListView1 includes letters in Alphabetical order. And the second ListView2 includes the words that start with the selected letter (in ListView1). When I choose a letter from ListView1 and then click on a…
yalematta
  • 1,389
  • 1
  • 21
  • 36
5
votes
2 answers

Get selected index tabbar controller Swift

I'm trying to get the selected index of the tabbarController. let application = UIApplication.sharedApplication().delegate as AppDelegate let tabbarController = application.tabBarController as UITabBarController let selectedIndex =…
Maystro
  • 2,907
  • 8
  • 36
  • 71
1
2 3
23 24