combobox

Combobox display value in Silverlight

I have ComboBox with CheckBoxes for items. When user checks or uncheckes boxes I want the selected values to be displayed in the ContentPresenter separated by comma. At the the moment I have overridden ContentPresenter: <ContentPresenter x:Name="ContentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" ...

Why doesn't extjs qtip on combobox show up in internet explorer ?

hi all, I've added an extJS quicktip (qtip) to an extJS combobox and it works well in FF, Chrome, Safari but not in IE7 and IE8. Here is a code snippet: var searchConfig = { store: store, tpl: tpl, hideTrigger: false, minChars: 1, queryDelay: 50, emptyText: OpenLayers.i18n('Geo search.....

Combobox default item appears selected on default

The comboboxes's default items on the dialog appear selected by default initially. No special code or properties being set that I'm aware of. I'm expecting them to be highlighted when an item selected explicitly instead of on default. any ideas? This is a C# application with .net 4.0 Thanks, ...

WPF/Silverlight XAML: How do I bind a SQL bit field to a True/False combobox or listbox?

I store True/False values as bit fields in SQL Server. The fields are nullable. What is the XAML syntax to bind a bit field to a WPF combo box so the user can choose True/False or blank (null)? By the way, I'm binding to a strongly-typed dataset/datatable. Drag and drop binding has simplified binding to other datatypes. I certainly don...

WPF ComboBox: how to set focus on it's togglebutton

I'm trying to get a combobox to match a visual design, so its togglebutton has a blue border when the combobox has focus. I can't figure out how to do this and can't find an example. When the combobox gets focus, the textbox inside gets the dashed focus visual. How do I pass the combobox focus state down to the togglebutton, so that it'...

How to make HTML combo box save values added by user in textbox?

I have made a combobox for a web page. It takes values from user into text box & adds those to list on double click in text box. I want to make user entered values permanently stored as option in list. How can I do it. One more question is how can I count the number of options in list so that I add an element next to that. Here is my co...

How build a list dynamically and pass/save user selected values from an HTML form to server?

I think in this case I need to write a client side script that onpageload/onchange gets options from server & builds a list dynamically. & stores new options to server via some JavaScript script. I will prefer to save user input in a file on server. I will be very thankful for any help. ...

Using a combobox for search criteria

Hi All- I am relatively new to winforms and C# and I am developing an application that will allow users to perform a search. To search the data they can use the following: -Combobox with 6 options -text box that they will enter info based on the combobox search selected. I have a stored procedure with a parameter for each of the sea...

how i can change background combobox in silverlight?

Like this http://forums.silverlight.net/forums/p/62122/460886.aspx ...

WPF: Combobox with forced uppercase?

I'm not sure why, but none of the solutions are working properly for me from a similar question. I realize that a TextBox has a property (CharacterCasing) which can be set to Upper to change any lowercase typing into uppercase. It works so great because the user is never interrupted while typing, caps lock and shift don't affect it nega...

C# - Calling a function in another program over a networked solution.

I have a server and a client program, and they communicate as expected. The only thing is, I have a combo box on the client program, and when this combo box is changed, I want it to call a function on the server program. How would I go about this? I've thought about it for a while, and just can't seem to get it to work. ...

two comboboxes in datagridview

i am delaeaing with comboboxes in datagridview in windowsforms assume that i have two combboxes in one datagridview so my question is how to populate comboboxcolumn in datagridview according to selected values from another comboboxcolum in this datagridview ...

Add text to a combobox's items property

After typing text into a combobox during run time, how do I add it to the combobox's items property? This is in C# 2010. ...

cxGrid: how to cast a cell to a combobox-object

hi @ all, i have a problem with my cxgrid. in my cxgrid there a different rows and columns which have comboboxes as properties. but how can i cast a special cell value to a combobox-object? for example: i want to set the itemindex of the combobox in row 1 and column 2 to 0. thanks! ...

How to return data fetched from MySQL into a php file as JSON?

I have to return data fetched from MySQL table into a php file as JSON. Here is my code to connect to mysql & get data from it. How could now I return it as JSON. <?php $username = "user"; $password = "********"; $hostname = "localhost"; $dbh = mysql_connect($hostname, $username, $password) or die("Unable to...

Silverlight TwoWay-bound ComboBox setting values to NULL

Before I explain my issue, consider the following object: Character.cs -> AnimationControlSettings.cs .. -> UpControlType (string) .. -> AvailableControlTypes (List<string>) The relevant properties in my ViewModel: Character SelectedCharacter ObservableCollection<Character> Characters I have a simple View where you select a ch...

Trouble with Flex 3 PopupManager

I'm trying to use the PopupManager class in a Flex3 AIR app to open different kinds of panels but I'm running into some problems with it. I'm using a method like the following with which all panels are opened .. private function createPopUp(clazz:Class, modal:Boolean = false):IFlexDisplayObject { var p:IFlexDisplayObject = IFlexDisplay...

Binding the combobox in C# desktop application

Hi there, I am working on a project for my college where I need to bind data from database into the combobox. I need to store the roll no / enrollment no in the "value" field of combobox and name of the student in the "text" property of the combobox. How can I do that?>??? Please reply ASAP.... ...

Populating Combobox from database dynamically

Hi there, I am working on a project for my college where I need to bind data from database into the combobox. I need to store the roll no / enrollment no in the "value" field of combobox and name of the student in the "text" property of the combobox. My code is : #region Fill Combo Box //Fill Combo Box. public static vo...

How to bind images to a Combobox in WPF, getting the images from a lookup.

I have a WPF combobox that I would like to bind to an observable collection of Teams on my ViewModel class e.g. class Team { public int Id { get; set; } public string Name { get; set; } public int CountryId { get; set; } } class ViewModel { public ObservableCollection<Team> Teams { get; set; } public IDictionary<int, Image...