selectedindex

Do WPF ComboBox SelectedIndex and SelectedValue have different behavior on SelectionChanged event?

Hello guys I got this cbxJobPosition_SelectionChanged firing as expected. The problem is when a external method tries to set cbxJobPosition. cbxJobPosition is databinded with a list of objects of type JobPosition: JobPositionID: 1, JobPositionName: Manager JobPositionID: 2, JobPositionName: Employee JobPositionID: 3, JobPositionName:...

UITabBarController rotation problem with popViewControllerAnimated and selectedIndex (iPhone SDK)

Hi! This is a very important auto rotate issue and easy to reproduce. My application has a UITabBarController. Each tab is a UINavigationController. Auto rotation is handled with normal calls to shouldAutorotateToInterfaceOrientation and didRotateFromInterfaceOrientation. The interface rotates normally until I call UIViewController.p...

WPF: ComboBox with selecteditem set make not use of SelectedIndex=0 ?

Hello, Why is the first element in my combobox popup menu not shown in the selected item area of my combobox , when I use the SelectedItem binding? Without that it is showing up ?? Using the same code selecteditem + selectedindex that is no problem! <ComboBox ItemsSource="{Binding SchoolclassSubjectViewModels}" Selec...

WPF: ComboBox SelectedIndex = -1 ??

Hello, I am using a MVVM Wizard with several pages. When I set a value in the combobox and go to the next page and switch back I want to reset the value I set before. But all whats happening is that the combobox is empty at top and the index is -1 ? What do I wrong? <ComboBox ItemsSource="{Binding Path=LessonNumbers}" SelectedIndex="...

How can I set the SelectedIndex in a ComboBox having element binding?

Hi, I have two ComboBoxes, one for Organisation and one for Region. When selecting Organisation I want the Region combobox to update itself with the related regions. After selecting Organisation and Region I can type in a Site to a textbox and store it to db (ADD mode). I've completed that with this code: <ComboBox x:Name="cbOrganisatio...

how can we change multiview view from client side (with javascript)?

hi my dear friends : is it possible to change multiview view from client side (with javascript)? thanks in future advance ...

ASP.NET DropDownList / HTML select list default selection

For my ASP.NET page, in the code behind I load various items/options into a DropDownList but I do not set a default by assigning SelectedIndex. I notice for the postback SelectedIndex is set to 0, even if I never set focus to or changed the value in the DropDownList. If not otherwise specified in the code behind or markup, will a defaul...

Binding MenuItem property (IsEnabled) to combobox property (SelectedIndex) in same control

Hey all, I've spent a good portion of my day researching this; I'm curious if it's possible to do simple binding fully in XAML, without the need to implement INotifyPropertyChanged in the code behind. Ironically, in the amount of time I've spent researching this I could have just done it in the code behind 5 times over. I've come acro...

iPhoneDev, UITabBarController SelectedIndex Problems

I am trying to programmatically switch the tab bar item. The following code works fine, but I can't get it to work in certain situations: self.tabBarController.selectedIndex = 0; Here is the problem: I have a tab bar controller with two UIViewController classes. In the second tab, I have the code above placed inside an if statement...

WPF Combobox SelectedItem hell

Im having a very funny issue in WPF Im creating a Combobox through code, and adding it to a control. When I set the Combobox.SelectedItem or Combobox.SelectedIndex or Combobox.SelectedValue I am unable to select another option from the Combox items. ForeignKeyDisplayAttribute attribute = (ForeignKeyDisplayAttribute)this.GetAttribute(t...

Selecting a List item with an ItemRenderer immediately transitions back to unselected state

I have a Spark List with a custom ItemRenderer. The ItemRenderer contains a custom component that is visible only when the ItemRenderer is in the selected state, e.g.: <components:MyCustomThing id="customThing" left="158" top="22" includeIn="selected"/> I've stripped down MyCustomThing to the bare essentials, namely: <?xml version="1...

Specify a default selected item for HTML form drop-downs

Typically when you need to select an item by default, you do: <select> <option value="1"> Volvo </option> <option value="2" selected="true"> Saab </option> <option value="3"> Mercedes </option> <option value="4"> Audi </option> </select> Is it possible to get something like t...

Use JavaScript to get selectedIndex from an innerHTML text string.

What I have is this object.innerHTML which is this: <TABLE > <TBODY> <TR> <TD > <IMG id=ctl00_Def_ctl00_ucXXXControl_gvGridName_ctl00_ctl05_imgXYZError src="etc/exclamation.png"> </TD> <TD> <SELECT id=ctl00_Def_ctl00_ucXXXControl_ctl00_ctl05_rcb123 name=ctl00$Def$ctl00$ucXXXControl$gvGridName$ctl00$ctl05$rcb123...