Combo Box

Please install Silverlight or click download to watch video locally.

This video will demonstrate how to use the new Combo Box control from the Microsoft AJAX Control Toolkit.

Presented by Joe Stagner

Duration: 9 minutes, 33 seconds

Date: 13 May 2009

Watch    Video   |   Download    Video   |   VB Code    C# Code

Video downloads: WMV  |  Zune  |  iPod  |  PSP  |  MPEG-4  |  3GP

Audio downloads: AAC  |  WMA  |  MPEG-4  |  MPEG-3  |  MPEG-2

Comments : 12

Leave a Comment

haithemara : On May 14, 2009 2:57 PM said:

Good video. Thank you

wass : On May 14, 2009 4:17 PM said:

Adding new item to DB is the main value of ComboBox. But this is not covered.

jsalinase : On May 14, 2009 7:04 PM said:

Nice, thanks for the video.

JoeStagner : On May 15, 2009 2:11 PM said:

wass - you would add a value entered into the combobox the same way you would add a value from any control.

nisarkhan : On May 16, 2009 12:49 AM said:

Joe,

when MS is planning to have Multi-Combobox ? i'm so surprised that MS do not have the control.

also, i can use the ajax combobox NOT standard control with cascading-dropdownlist ?

thanks.

junior8822 : On May 20, 2009 3:53 AM said:

Joe,

I think I found a bug with this control. After post-back, there seems to be no way to clear the previously selected (or entered) value. I've tried the following in a code-beside Button_Click event:

ComboBox1.ClearSelection();

and

ComboBox1.SelectedValue = "";

and

ComboBox1.Text = "";

I've even re-bound the data to the control. The previously selected value always remains. This is problematic for me. I have a page where the user can enter an address and click Save. I then want to clear the control's value out to allow a new address to be entered. Any tips or work-arounds would be VERY appreciated.

ukbrown : On May 26, 2009 3:42 PM said:

I'm having the same problem.

I have three combo boxes, each of the first two cause a postback & filter the items in the following combo boxes.

The selectedindex seems to be remembered between the postbacks. The newly populated combo box displays the item at the same position as was shown on the previous page. If that position doesnot exist in the new list then the previous text value is still shown until an item is selected.

Setting SelectedIndex to -1 or 0 has no effect.

Any help would be appreciated.

Dave

dotnetruler : On May 27, 2009 1:05 AM said:

Hi i am trying use Ajax Combobox. The autopost back is not working if i use that control inside an update panel.. is this a bug or are there a way around this

dotnetruler : On May 27, 2009 3:56 PM said:

I found a new thing.. when ever u enter something in the combo box and if u r doing backspace button click.. its not doing any thing, seems like its a javascript bug for firefox.. its workign good in IE

prakash.gupta83@hotmail.com : On June 11, 2009 12:25 PM said:

hi

I also have the same problem.

I have two combo boxes cboCity and cboState whenever I selected city from cboCity then I change State from cboState then I want to set city combo blank I tried following methods-

cboCity.SelectedIndex = 0

cboCity.SelectedIndex = -1

cboCity.SelectedValue = string.Empty

cboCity.SelectedIndex = 0

cboCity.ClearSelection()

cboCity.Items.Clear()

but nothing is working it always shows previous selected value.

Please help

Thanks

Prakash Gupta

thewire : On June 12, 2009 6:47 PM said:

joe- do you know the css used on the ajax demo page to put the combo box in WindowsStyle?

thewire : On June 12, 2009 7:46 PM said:

nevermind, i found it in the sample website downloadable on codeplex. thanks

Leave a Comment

You must be logged in to leave a comment. Click here to log in.

Microsoft Communities